/* ================================================================
CONTACT PAGE - Figma Spec Implementation
Uses existing CSS variables from variables.css
================================================================ */

/* ========== BASE CONTAINER ========== */
.contact-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--c-bg-dark);
    overflow: hidden;
}

.contact-main-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 2.4vw, 30px);
    z-index: 1;
}

/* ========== DECORATIVE FORM CARD - DESKTOP ========== */
.contact-form-card {
    position: relative;
    margin: 0 auto;
    height: 2638px;
    border-radius: 0 600px 0 600px;
    border: 3px solid transparent;
    background: 
        var(--c-bg-gradient) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 17.31%, rgba(255, 255, 255, 0) 86.54%, rgba(255, 255, 255, 0.5) 100%) border-box;
    padding: clamp(40px, 5vw, 80px) clamp(30px, 4vw, 60px);
    z-index: 2;
}

/* ========== PAGE TITLE ========== */
.contact-page-title {
    text-align: center;
    margin: 80px auto 24px;
}

.contact-page-title-text {
    font-family: var(--font-arabic-heading);
    font-weight: 900;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 36px;
    color: var(--c-white);
    margin: 0;
    text-align: center;
}

.gold-line {
    display: block;
    width: 232px;
    height: 4px;
    background: var(--c-accent);
    margin: 24px auto;
    border-radius: 2px;
}

/* ========== INTRO TEXT BOX ========== */
.contact-intro-box {
    position: relative;
    width: 90%;
    margin: 80px auto;
    padding: clamp(16px, 2vw, 24px);
    border-radius: 0 80px 0 80px;
    border-right: 0.5px solid rgba(255, 255, 255, 1);
    border-left: 0.5px solid rgba(255, 255, 255, 1);
    text-align: center;
    background: rgba(217, 217, 217, 0.05);
}

.contact-intro-text {
    font-family: var(--font-arabic);
    font-weight: 400;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 28.8px;
    color: var(--c-white);
    margin: 0;
    text-align: center;
}

/* ========== FORM SECTION TITLE ========== */
.contact-form-section-title {
    text-align: center;
    margin-bottom: 16px;
}

.contact-form-section-title-text {
    font-family: var(--font-arabic);
    font-weight: 700;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1;
    color: var(--c-accent);
    margin: 0;
}

.contact-form-section-line {
    display: block;
    width: 176px;
    height: 4px;
    background: var(--c-white);
    margin: 12px auto 40px;
    border-radius: 2px;
}

/* ========== FORM FIELDS CONTAINER ========== */
.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 40px);
    margin-bottom: 40px;
}

.form-field-group {
    position: relative;
}

.form-field-label {
    display: block;
    font-family: var(--font-arabic);
    font-weight: 300;
    font-size: clamp(24px, 2.5vw, 35px);
    line-height: 1;
    color: var(--c-white);
    margin-bottom: 12px;
    text-align: left;
    padding-bottom: 10px;
}

.form-field-input {
    width: 100%;
    height: 144px !important;
    padding: 0 clamp(16px, 2vw, 24px);
    border-radius: 0 80px 0 80px;
    border-right: 1px solid var(--c-white);
    border-left: 1px solid var(--c-white);
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--font-arabic);
    font-size: clamp(16px, 2vw, 20px);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field-input::placeholder {
    color: var(--c-white);
}

.form-field-input:focus {
    background: rgba(255, 255, 255, 0.5);
}

.form-field-textarea {
    min-height: 338px !important;
    resize: none;
}

/* ========== SUBMIT BUTTON ========== */
.contact-submit-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 256px;
    height: 126px;
    padding: 10px;
    border-radius: 0 80px 0 80px;
    border: 3px solid rgba(255, 255, 255, 1);
    background: rgba(212, 175, 55, 1);
    cursor: pointer;
    font-family: var(--font-arabic);
    font-weight: 700;
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1;
    color: var(--c-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    background: rgba(212, 175, 55, 0.9);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.contact-submit-btn svg {
    width: clamp(24px, 3vw, 30px);
    height: clamp(24px, 3vw, 30px);
    flex-shrink: 0;
}

/* ========== FOOTER INFO ========== */
.contact-footer-info {
    position: relative;
    margin-top: 180px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    justify-content: flex-start;
}

.contact-footer-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-direction: row-reverse;
    padding: 8px 0 8px 8px;
}

.contact-footer-text {
    font-family: var(--font-arabic);
    font-weight: 400;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 42px;
    color: var(--c-white);
    margin: 0;
    text-transform: capitalize;
    flex: 1;
    text-align: right;
}

.contact-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(30px, 4vw, 40px);
    height: clamp(30px, 4vw, 40px);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.contact-footer-icon:hover {
    transform: scale(1.1);
}

.contact-footer-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========== DECORATIVE ELEMENT ========== */
.contact-decor {
    position: absolute;
    top: clamp(20px, 3vw, 40px);
    left: clamp(20px, 3vw, 40px);
    width: clamp(100px, 15vw, 144px);
    height: clamp(180px, 25vw, 262px);
    opacity: 0.52;
    pointer-events: none;
    z-index: 1;
}

[dir="rtl"] .contact-decor {
    left: auto;
    right: clamp(20px, 3vw, 40px);
}

.contact-decor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========== FORM CONTAINER ========== */
.contact-form-container {
    position: relative;
    margin: 60px auto 0;
    padding: clamp(30px, 4vw, 50px);
    border-radius: 0 150px 0 150px;
    border: 1px solid var(--c-white);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 3;
}

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 1023.98px) {
    .contact-form-card {
        min-height: auto;
        border-radius: 0 300px 0 300px;
        padding: 40px 30px;
    }
    
    .contact-intro-box {
        border-radius: 0 80px 0 80px;
        background: rgba(217, 217, 217, 0.05);
        border: 0.5px solid var(--c-white);
    }
    
    .contact-intro-box,
    .contact-form-fields {
        width: 100%;
    }
    
    .contact-form-container {
        min-height: auto;
        border-radius: 0 100px 0 100px;
        padding: 40px 30px;
    }
    
    .form-field-input {
        border-radius: 0 60px 0 60px;
    }
    
    .contact-submit-btn {
        border-radius: 0 60px 0 60px;
    }
}


@media (max-width: 719.98px) {
    .contact-page {
        padding-top: 0;
    }
    
    .contact-main-wrapper {
        padding: 0 15px;
    }
    
    /* Form Card - Scaled down from desktop */
    .contact-form-card {
        width: min(600px, 95vw);
        height: auto;
        min-height: 1200px;
        margin: 30px auto 0;
        border-radius: 0 300px 0 300px;
        border: 2px solid transparent;
        padding: 30px 25px;
    }
    
    /* Page Title */
    .contact-page-title {
        margin: 40px auto 16px;
    }
    
    .contact-page-title-text {
        font-size: 24px;
        line-height: 28px;
    }
    
    .gold-line {
        width: 150px;
        height: 3px;
        margin: 12px auto;
    }
    
    /* Intro Box */
    .contact-intro-box {
        width: 92%;
        margin: 40px auto;
        padding: 12px 16px;
        border: none;
        background: transparent;
    }
    
    .contact-intro-text {
        font-size: 14px;
        line-height: 20px;
    }
    
    /* Form Container */
    .contact-form-container {
        width: min(450px, 90%);
        margin: 30px auto 0;
        padding: 25px 20px;
        border-radius: 0 100px 0 100px;
        border: 1px solid var(--c-white);
        backdrop-filter: blur(5px);
    }
    
    /* Form Section Title */
    .contact-form-section-title-text {
        font-size: 10px;
    }
    
    .contact-form-section-line {
        width: 100px;
        height: 3px;
        margin: 8px auto 20px;
    }
    
    /* Form Fields */
    .contact-form-fields {
        gap: 20px;
    }
    
    .form-field-label {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .form-field-input {
        width: 100%;
        height: 60px !important;
        padding: 0 20px;
        border-radius: 0 40px 0 40px;
        border-right: 1px solid var(--c-white);
        border-left: 1px solid var(--c-white);
        background: rgba(255, 255, 255, 0.05);
        font-size: 14px;
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    }
    
    .form-field-textarea {
        min-height: 150px !important;
        padding: 12px 20px !important;
    }
    
    /* Submit Button */
    .contact-submit-wrapper {
        margin-top: 15px;
    }
    
    .contact-submit-btn {
        width: 55px;
        height: 15px;
        padding: 10px;
        border-radius: 0 40px 0 40px;
        border: 1.5px solid rgba(255, 255, 255, 1);
        background: rgba(212, 175, 55, 1);
        font-size: 8px;
        gap: 8px;
    }
    
    .contact-submit-btn img {
        width: 10px;
        height: 10px;
    }
    
    /* Footer Info */
    .contact-footer-info {
        margin: 10px 0  0 25px;
        align-items:center;
        gap: 0;
    }
    
    .contact-footer-row {
        justify-content:center;
        gap: 10px;
        padding: 0;
    }
    
    .contact-footer-text {
        font-size: 7px;
        line-height: 30px;
    }
    
    .contact-footer-icon {
        width: 10px;
        height: 10px;
    }
    
    /* Decorative element */
    .contact-decor {
        width: 100px;
        height: 180px;
        top: 15px;
        left: 15px;
    }
}


/* ========== RESPONSIVE - MOBILE (340px card) ========== */
@media (max-width: 375px) {
    .contact-page {
        padding-top: 0;
    }
    
    .contact-main-wrapper {
        padding: 0 10px;
    }
    
    /* Form Card - Figma: 340×579, top:39px, left:10px */
    .contact-form-card {
        width: 340px;
        height: 579px;
        margin: 39px auto 0;
        border-radius: 0 150px 0 150px;
        border: 1.5px solid transparent;
        background: 
            var(--c-bg-gradient) padding-box,
            linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 17.31%, rgba(255, 255, 255, 0) 86.54%, rgba(255, 255, 255, 0.5) 100%) border-box;
        padding: 20px 15px;
        min-height: auto;
    }
    
    /* Page Title - Kafa 900, 12px */
    .contact-page-title {
        margin: 0 auto 8px;
    }
    
    .contact-page-title-text {
        font-family: var(--font-arabic-heading);
        font-weight: 900;
        font-size: 12px;
        line-height: 36px;
        text-align: center;
    }
    
    .gold-line {
        width: 80px;
        height: 2px;
        margin: 4px auto 12px;
    }
    
    /* Intro Box - No border */
    .contact-intro-box {
        width: 95%;
        margin: 8px auto;
        padding: 6px 8px;
        border-radius: 0 20px 0 20px;
        border: none;
        background: rgba(217, 217, 217, 0.05);
    }
    
    /* Intro Text - Sukar 400, 8px, 15px line-height */
    .contact-intro-text {
        font-family: var(--font-arabic);
        font-weight: 400;
        font-size: 8px;
        line-height: 15px;
        text-align: center;
        text-transform: capitalize;
    }
    
    /* Form Container - 250×373, top:142px, peach bg */
    .contact-form-container {
        width: 250px;
        margin: 10px auto 0;
        padding: 15px 12px;
        border-radius: 0 80px 0 80px;
        border: 1px solid rgba(255, 255, 255, 1);
        background: rgba(255, 243, 234, 1);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    /* Form Section Title - Tajawal 700, 10px */
    .contact-form-section-title {
        margin-bottom: 8px;
    }
    
    .contact-form-section-title-text {
        font-family: 'Tajawal', var(--font-arabic);
        font-weight: 700;
        font-size: 10px;
        line-height: 1;
        text-align: right;
    }
    
    .contact-form-section-line {
        width: 60px;
        height: 2px;
        margin: 4px auto 10px;
    }
    
    /* Form Fields */
    .contact-form-fields {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .form-field-group {
        margin-bottom: 0;
    }
    
    /* Labels - Tajawal 300, 10px */
    .form-field-label {
        font-family: 'Tajawal', var(--font-arabic);
        font-weight: 300;
        font-size: 10px;
        line-height: 1;
        text-align: right;
        margin-bottom: 4px;
        padding-bottom: 4px;
    }
    
    /* Inputs - 193×33, 15px radius */
    .form-field-input {
        width: 193px;
        height: 33px !important;
        padding: 10px 18px;
        border-radius: 0 15px 0 15px;
        border: 1px solid rgba(255, 255, 255, 1);
        background: rgba(255, 255, 255, 0.95);
        font-size: 10px;
        box-shadow: none;
    }
    
    .form-field-input::placeholder {
        color: rgba(0, 0, 0, 0.4);
    }
    
    /* Textarea - 200×78 */
    .form-field-textarea {
        width: 200px;
        min-height: 78px !important;
        padding: 10px 18px;
        border-radius: 0 15px 0 15px;
    }
    
    /* Submit Button - Gold bg, gradient border */
    .contact-submit-wrapper {
        margin-top: 10px;
        justify-content: center;
    }
    
    .contact-submit-btn {
        width: auto;
        height: 28px;
        padding: 6px 16px;
        border-radius: 0 15px 0 15px;
        border: 1.5px solid transparent;
        border-image-source: linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 17.31%, rgba(255, 255, 255, 0) 86.54%, #FFFFFF 100%);
        border-image-slice: 1;
        background: rgba(212, 175, 55, 1);
        font-size: 8px;
        gap: 4px;
    }
    
    .contact-submit-btn span {
        font-family: 'Tajawal', var(--font-arabic);
        font-weight: 700;
        font-size: 8px;
        line-height: 1;
        text-align: right;
    }
    
    .contact-submit-btn img {
        width: 12px;
        height: 12px;
    }
    
    .contact-submit-btn:hover {
        box-shadow: none;
        transform: none;
    }
    
    /* Footer Info - Centered at bottom */
    .contact-footer-info {
        margin-top: 15px;
        align-items: center;
        gap: 6px;
    }
    
    .contact-footer-row {
        justify-content: center;
        flex-direction: row;
        gap: 6px;
        padding: 0;
    }
    
    /* Footer Text - Sukar 400, 7px */
    .contact-footer-text {
        font-family: var(--font-arabic);
        font-weight: 400;
        font-size: 7px;
        line-height: 42px;
        text-align: center;
        text-transform: capitalize;
        flex: none;
    }
    
    /* Footer Icons - 10×10 */
    .contact-footer-icon {
        width: 10px;
        height: 10px;
    }
    
    /* Hide decorative element on mobile */
    .contact-decor {
        display: none;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 374px) {
    .contact-form-card {
        width: calc(100vw - 20px);
        max-width: 340px;
    }
    
    .contact-form-container {
        width: calc(100% - 24px);
        max-width: 250px;
    }
    
    .form-field-input {
        width: calc(100% - 36px);
        max-width: 193px;
    }
    
    .form-field-textarea {
        width: calc(100% - 36px);
        max-width: 200px;
    }
}

/* ========== SMALL MOBILE (320px) ========== */
@media (max-width: 319.98px) {
    .contact-form-card {
        width: calc(100vw - 20px);
        max-width: 340px;
        border-radius: 0 150px 0 150px;
        padding: 15px 12px;
    }
    
    .contact-form-container {
        width: calc(100% - 24px);
        max-width: 250px;
        border-radius: 0 80px 0 80px;
        padding: 12px 10px;
    }
    
    .form-field-input {
        width: calc(100% - 36px);
        max-width: 193px;
        height: 33px !important;
        border-radius: 0 15px 0 15px;
        font-size: 10px;
    }
    
    .form-field-textarea {
        width: calc(100% - 36px);
        max-width: 200px;
        min-height: 78px !important;
        border-radius: 0 15px 0 15px;
    }
    
    .contact-submit-btn {
        width: auto;
        height: 28px;
        padding: 6px 16px;
        border-radius: 0 15px 0 15px;
        font-size: 8px;
    }
    
    .contact-footer-text {
        font-size: 7px;
        line-height: 42px;
    }
    
    .contact-footer-icon {
        width: 10px;
        height: 10px;
    }
}