/* =========================================
   12. CONTACT SECTION
   ========================================= */

.contact-section {
    padding: 6rem 5rem 2rem 5rem;
    /* Increased Left/Right padding as requested */
    width: 100%;
    position: relative;
    background: transparent;
}

.contact-card-wrapper {
    /* The large white card container */
    background: #ffffff;
    border-radius: 24px;
    /* Reduced by 20% from 30px */
    padding: 3.2rem;
    /* Reduced by 20% from 4rem */
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.05);
    /* Soft, premium shadow */
    display: flex;
    flex-wrap: wrap;
    gap: 3.2rem;
    /* Reduced by 20% from 4rem */
    align-items: flex-start;
    justify-content: space-between;
    max-width: 960px;
    /* Reduced by 20% from 1200px */
    margin: 0 auto;
}

/* LEFT SIDE: TEXT CONTENT */
.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    /* Reduced by 20% from 0.85rem */
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    /* Light grey text */
    letter-spacing: 0.8px;
    /* Reduced by 20% from 1px */
    margin-bottom: 0.8rem;
    /* Reduced by 20% from 1rem */
}

.contact-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    /* Reduced by 20% from 3rem */
    font-weight: 600;
    line-height: 1.1;
    color: #1b4332;
    /* Dark Green Brand Color */
    margin-bottom: 1.6rem;
    /* Reduced by 20% from 2rem */
}

.contact-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    /* Reduced by 20% from 1rem */
    color: #666;
    line-height: 1.6;
    margin-bottom: 2.4rem;
    /* Reduced by 20% from 3rem */
    max-width: 90%;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.contact-method-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: #1b4232;
}

.contact-text-label {
    display: block;
    font-size: 0.64rem;
    /* Reduced by 20% from 0.8rem */
    color: #999;
    font-weight: 500;
    margin-bottom: 0.16rem;
    /* Reduced by 20% from 0.2rem */
}

.contact-text-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    /* Reduced by 20% from 1rem */
    color: #333;
    font-weight: 500;
}


/* RIGHT SIDE: FORM (Claymorphism) */
.contact-form-container {
    flex: 0 0 360px;
    /* Reduced by 20% from 450px */
    max-width: 100%;

    /* Claymorphism Effect */
    background: #ffffff;
    border-radius: 24px;
    /* Reduced by 20% from 30px */
    padding: 2rem;
    /* Reduced by 20% from 2.5rem */

    /* Deep Shadow for Float Effect */
    box-shadow:
        16px 16px 48px #d1d9e6,
        /* Adjusted shadow */
        -16px -16px 48px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.form-group {
    margin-bottom: 1.2rem;
    /* Reduced by 20% from 1.5rem */
}

.form-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    /* Reduced by 20% from 0.9rem */
    color: #666;
    margin-bottom: 0.4rem;
    /* Reduced by 20% from 0.5rem */
    font-weight: 500;
}

/* Clay Inputs (Inset Shadow) */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    /* Reduced by 20% from 1rem 1.2rem */
    border-radius: 9.6px;
    /* Reduced by 20% from 12px */
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    /* Reduced by 20% from 0.95rem */
    color: #333;
    background: #f0f4f8;
    /* Very light grey/blue base */

    /* Inset Shadow (Neumorphism/Clay Input) */
    box-shadow: inset 4px 4px 8px rgba(174, 190, 205, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.7);
    outline: none;
    transition: box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    box-shadow: inset 6px 6px 12px rgba(174, 190, 205, 0.4),
        inset -6px -6px 12px rgba(255, 255, 255, 0.8);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.64rem;
    /* Reduced by 20% from 0.8rem */
    width: 100%;
    padding: 0.8rem;
    /* Reduced by 20% from 1rem */
    background: #d9edd3;
    color: #1b4232;
    border: none;
    border-radius: 40px;
    /* Reduced by 20% from 50px */
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    /* Reduced by 20% from 1rem */
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    /* Button Shadow */
    /* Button Shadow */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.submit-arrow {
    width: 20px;
    height: 20px;
    background: rgba(27, 66, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .contact-section {
        padding: 4rem 2rem;
    }
    .contact-card-wrapper {
        flex-direction: column;
        padding: 2rem;
        gap: 3rem;
    }

    .contact-form-container {
        flex: 1;
        width: 100%;
    }

    .contact-title {
        font-size: 2.2rem;
    }
}

/* Typewriter Effect CSS */
.typewriter-span {
    color: #1b4332;
    /* Match theme color */
    font-weight: 600;
    position: relative;
    border-right: 2px solid #1b4332;
    /* Cursor */
    padding-right: 5px;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #1b4332;
    }
}

/* =========================================
   MOBILE LAYOUT OPTIMIZER (320px - 480px)
   ========================================= */
@media (max-width: 480px) {
    .contact-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .contact-card-wrapper {
        padding: 24px 16px !important;
        gap: 24px !important;
        border-radius: 20px !important;
    }

    .contact-title {
        font-size: 24px !important;
        /* Normalized H1 */
        line-height: 32px !important;
        margin-bottom: 12px !important;
    }

    .contact-desc {
        font-size: 16px !important;
        line-height: 24px !important;
        margin-bottom: 24px !important;
    }

    .contact-form-container {
        padding: 16px !important;
        /* Min padding for internal card */
        border-radius: 20px !important;
    }

    /* Reset margins for labels/inputs */
    .form-group {
        margin-bottom: 16px !important;
    }
}