/* --------------------------------------------------------------------------
   Contact Section Container Layout
   -------------------------------------------------------------------------- */
.contact-section-wrapper {
    background-color: #0b0f12;
    padding: 80px 24px;
    color: #ffffff;
    overflow: hidden;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Left Form Card */
.contact-card-dark {
    background: #121619;
    border-radius: 12px;
    padding: 36px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-card-dark:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.contact-header {
    margin-bottom: 24px;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.contact-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-field {
    position: relative;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    font-family: inherit;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #94a3b8;
}

/* Input Focus Glow & Lift */
.form-field input:focus,
.form-field textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button & Animations */
.btn-contact-submit {
    align-self: flex-start;
    background: transparent;
    color: #ffffff;
    border: 1px solid #1d4ed8;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: 4px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-contact-submit:hover:not(:disabled) {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.4);
    transform: translateY(-2px);
}

.btn-contact-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Loading Spinner */
.btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
    display: none;
}

.btn-contact-submit.is-loading .btn-spinner {
    display: inline-block;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Status Messages Transitions */
.contact-status-msg {
    font-size: 0.85rem;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-status-msg.success,
.contact-status-msg.error {
    opacity: 1;
    transform: translateY(0);
}

.contact-status-msg.success {
    color: #4ade80;
}

.contact-status-msg.error {
    color: #f87171;
}

/* Right Text Side */
.contact-info-side {
    max-width: 520px;
}

.contact-info-heading {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.contact-info-text {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Scroll Entry Animations
   -------------------------------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.fade-left {
    transform: translateX(-40px);
}

.animate-on-scroll.fade-right {
    transform: translateX(40px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive adjustment */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column-reverse;
        gap: 40px;
    }
    .contact-info-side {
        max-width: 100%;
        text-align: center;
    }
    .animate-on-scroll.fade-left,
    .animate-on-scroll.fade-right {
        transform: translateY(30px); /* Vertical slide on mobile */
    }
}