/* =========================================================
   Contact Page Styles
   ========================================================= */
.kifco-contact-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #000000;
    color: #FFFFFF;
    overflow-x: clip;
}

/* تدرج من أعلى اليمين إلى أسفل اليسار باستخدام الدرجات المحددة */
.contact-hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 110px 24px 120px 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 12% 92%, rgba(96, 109, 221, 0.42) 0%, rgba(95, 107, 217, 0.18) 28%, transparent 56%),
        linear-gradient(
            225deg,
            #000000 0%,
            #000000 44%,
            #13152B 58%,
            #2A2F5F 70%,
            #424B98 81%,
            #5F6BD9 91%,
            #606DDD 100%
        );
}

.contact-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 52px;
}

/* ظهور كلمة Contact Us من الأسفل للأعلى مثل الستارة */
.contact-title {
    display: inline-block;
    font-family: 'madefor-display', 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(38px, 4.2vw, 58px);
    line-height: 1.18;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0;
    opacity: 0;
    clip-path: inset(100% 0% 0% 0%);
    -webkit-clip-path: inset(100% 0% 0% 0%);
    transform: translateY(28px);
    transition:
        clip-path 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
        -webkit-clip-path 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
        transform 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
        opacity 0.85s ease-out 0.15s;
    will-change: clip-path, transform, opacity;
}

.contact-title.is-revealed {
    opacity: 1;
    clip-path: inset(0% 0% 0% 0%);
    -webkit-clip-path: inset(0% 0% 0% 0%);
    transform: translateY(0);
}

/* إطار النموذج شفاف بالكامل مع الإبقاء على الحدود */
.contact-form-wrapper {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 36px 34px 32px 34px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: transparent;
    background-color: transparent;
    backdrop-filter: none;
    box-sizing: border-box;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.86);
}

.contact-input,
.contact-textarea {
    width: 100%;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background-color: #414252;
    color: #FFFFFF;
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.contact-input {
    height: 40px;
    padding: 0 12px;
}

.contact-textarea {
    min-height: 118px;
    padding: 10px 12px;
    resize: vertical;
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: rgba(96, 109, 221, 0.9);
    background-color: #4C4D5F;
}

.contact-actions {
    margin-top: 6px;
}

.contact-submit-btn {
    width: 100%;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: transparent;
    background-color: transparent;
    color: #FFFFFF;
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.contact-submit-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
}

.contact-submit-btn:active {
    transform: scale(0.99);
}

.contact-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
}

.contact-alert--success {
    background: rgba(96, 109, 221, 0.18);
    border: 1px solid rgba(96, 109, 221, 0.65);
    color: #FFFFFF;
}

.contact-alert--error {
    background: rgba(220, 68, 68, 0.16);
    border: 1px solid rgba(220, 68, 68, 0.65);
    color: #FFD6D6;
}

@media screen and (max-width: 640px) {
    .contact-hero-section {
        padding: 90px 16px 96px 16px;
    }

    .contact-form-wrapper {
        padding: 26px 18px 24px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-title {
        opacity: 1;
        clip-path: none;
        -webkit-clip-path: none;
        transform: none;
        transition: none;
    }
}