/* 
 * CONTACT PAGE REDESIGN
 * Consistent with White Wings color scheme
 */

/* HERO SECTION */
.contact-hero-section {
    background: #E6F1FD !important;
    position: relative;
    padding: 60px 0 40px;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.contact-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.contact-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-hero-text {
    color: #222 !important;
}

.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-hero-badge i {
    font-size: 18px;
    color: #222;
}

.contact-hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    color: #222 !important;
    text-align: left;
    display: block;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-hero-description p {
    font-size: 1.2rem;
    color: #222 !important;
    margin-bottom: 20px;
    line-height: 1.7;
}

.contact-hero-actions {
    display: flex;
    gap: 20px;
}

.contact-btn-primary, .contact-btn-secondary {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.contact-btn-primary {
    background: #A9B6C4 !important;
    color: #222 !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #396bf1 !important;
    color: white !important;
}

.contact-btn-secondary {
    background: #A9B6C4 !important;
    color: #222 !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.contact-btn-secondary:hover {
    background: #396bf1 !important;
    color: white !important;
    transform: translateY(-3px);
}

.contact-hero-visual {
    position: relative;
}

.contact-hero-image-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.contact-hero-image-container:hover .contact-hero-image {
    transform: scale(1.05);
}

.contact-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.contact-overlay-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    padding: 12px 20px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-overlay-badge i {
    font-size: 20px;
    color: white;
}

/* FEATURES SECTION */
.features-area-enhanced {
    padding: 80px 0;
    background: #F8FAFC !important;
    position: relative;
    overflow: hidden;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.codex-section-title h2 {
    font-size: 2.8rem !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin-bottom: 20px;
    line-height: 1.1;
    text-align: center !important;
}

.codex-section-title p {
    font-size: 1.1rem !important;
    color: #222 !important;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center !important;
}

.features-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
    border-color: #A9B6C4;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: #A9B6C4 !important;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    border: 2px solid #e2e8f0;
}

.feature-icon i {
    font-size: 2rem;
    color: #222 !important;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: #396bf1 !important;
}

.feature-card:hover .feature-icon i {
    color: white !important;
}

.feature-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #222 !important;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.feature-content p {
    color: #222 !important;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.feature-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 15px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    margin-top: auto;
}

.feature-card:hover .feature-stats {
    background: rgba(169, 182, 196, 0.1);
    border-color: #A9B6C4;
    transform: translateY(-3px);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #222 !important;
}

.stat-label {
    font-size: 0.8rem;
    color: #222 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CONTACT FORM SECTION */
.contact-card-section {
    background: url(images/hero/webp/conatat-pass.webp) center/cover no-repeat;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.contact-card-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Ensure the card wrapper is above the overlay */
.card-wrapper {
    position: relative;
    z-index: 5;
}

.card-wrapper {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.card-wrapper h2 {
    text-align: center;
    color: white !important;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
}

.contact-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #A9B6C4;
}

#visaContact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 42px;
}

.input-container:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    transform: translateY(-2px);
}

.input-container:focus-within {
    border-color: #A9B6C4;
    background: white;
    box-shadow: 0 0 0 6px rgba(169, 182, 196, 0.1);
    transform: translateY(-3px);
}

.input-icon {
    width: 42px;
    padding: 0;
    color: #222;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #e2e8f0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 0 0 10px;
    flex-shrink: 0;
}

.input-container:focus-within .input-icon {
    color: white;
    background: #A9B6C4;
    transform: scale(1.1);
}

.input-container input,
.input-container select,
.input-container textarea {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: 14px;
    background: transparent;
    color: #222;
    font-family: inherit;
    font-weight: 500;
}

.input-container input::placeholder,
.input-container textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-container select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23A9B6C4" stroke-width="3"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    padding-right: 50px;
}

.input-container textarea {
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
}

.file-input {
    position: relative;
    cursor: pointer;
    min-height: 60px;
}

.file-input input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-text {
    flex: 1;
    padding: 18px 25px;
    color: #94a3b8;
    font-size: 16px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.file-input:hover .file-text {
    color: #A9B6C4;
}

.btn-submit {
    grid-column: 1 / -1;
    background: #A9B6C4 !important;
    color: #222 !important;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    box-shadow: 0 8px 20px rgba(169, 182, 196, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(169, 182, 196, 0.6);
    background: #396bf1 !important;
    color: white !important;
}

.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.field.error .error-message {
    opacity: 1;
}

.field.error .input-container {
    border-color: #ef4444;
    background: #fef2f2;
}

small {
    color: #64748b;
    font-size: 13px;
    margin-top: 8px;
    display: block;
    font-weight: 500;
}

/* MAP SECTION */
.map-area {
    padding: 80px 0;
    background: #F8FAFC;
}

.map-area h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #222 !important;
    margin-bottom: 40px;
}

.map-frame {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 3px solid #e2e8f0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .contact-hero-section {
        min-height: auto;
        padding: 40px 0 30px;
    }

    .contact-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .contact-hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.4;
        text-align: center;
    }

    .contact-hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-btn-primary, .contact-btn-secondary {
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 200px;
    }

    .features-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-card-section {
        padding: 60px 15px;
    }

    .card-wrapper h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .contact-card {
        padding: 30px 25px;
        border-radius: 20px;
    }

    #visaContact {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .input-container {
        min-height: 45px;
    }

    .input-icon {
        width: 45px;
        font-size: 16px;
    }

    .input-container input,
    .input-container select,
    .input-container textarea {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 14px 30px;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .features-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        min-height: 240px;
        padding: 25px 15px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .feature-icon i {
        font-size: 1.6rem;
    }

    .feature-content h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .feature-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .feature-stats {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .contact-hero-section {
        padding: 30px 0 20px;
    }

    .contact-hero-text h1 {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .contact-hero-badge {
        padding: 8px 16px;
        font-size: 12px;
        margin-bottom: 20px;
    }

    .contact-hero-description p {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .contact-btn-primary, .contact-btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .card-wrapper h2 {
        color: white !important;
        font-size: 1.8rem;
        font-weight: 700;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .card-wrapper h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .input-icon {
        width: 40px;
        font-size: 14px;
    }

    .input-container {
        min-height: 40px;
    }

    .input-container input,
    .input-container select,
    .input-container textarea {
        padding: 10px 14px;
        font-size: 13px;
    }

    .btn-submit {
        padding: 12px 25px;
        font-size: 14px;
    }

    .map-area h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}