/**
 * Contact Page Styles
 * Haneen Nemer - Made With Love By HOSSAM ALZYOD
 */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(212, 175, 55, 0.07) 0%, transparent 50%),
        linear-gradient(160deg, #1a1210 0%, #0f0d0a 40%, #0a0a0a 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85), rgba(15, 15, 15, 0.9));
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(212, 175, 55, 0.03) 35px, rgba(212, 175, 55, 0.03) 70px);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-emoji {
    font-size: 5rem;
    display: block;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    line-height: 1.15;
    font-family: var(--font-arabic);
    animation: fadeInUp 0.9s ease-out;
    text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.hero-title-highlight {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #F4D03F 50%, var(--primary-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.9s ease-out, luxuryShine 4s ease infinite 1s;
    display: inline-block;
}

@keyframes luxuryShine {
    0%, 100% { background-position: 0% center; }
    50%       { background-position: 100% center; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    background: rgba(212, 175, 55, 0.08);
    color: var(--primary-gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    animation: fadeInUp 0.7s ease-out;
    backdrop-filter: blur(6px);
}

.hero-badge i {
    font-size: 0.75rem;
    opacity: 0.85;
}

.hero-subtitle {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.6rem;
    line-height: 1.7;
    font-weight: 500;
    animation: fadeInUp 0.9s ease-out 0.15s both;
}

.hero-tagline-contact {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: rgba(212, 175, 55, 0.7);
    margin-bottom: 1.8rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.3px;
    animation: fadeInUp 0.9s ease-out 0.28s both;
}

.hero-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-gold), #F4D03F);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-location:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #F4D03F, var(--primary-gold));
}

.btn-location i {
    font-size: 1.2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
.contact-section {
    padding: calc(70px + 3rem) 0 4rem;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(212, 175, 55, 0.018) 40px, rgba(212, 175, 55, 0.018) 42px),
        repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(212, 175, 55, 0.012) 40px, rgba(212, 175, 55, 0.012) 42px),
        linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
    background-attachment: fixed;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.9), rgba(15, 15, 15, 0.95));
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(212, 175, 55, 0.08));
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold), #F4D03F);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1a1a1a;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.info-content h3 {
    color: var(--primary-gold);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.info-content a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--primary-gold);
}

.ltr-text {
    direction: ltr;
    text-align: left;
}

/* WhatsApp Card Special Styling */
.whatsapp-card {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.05), rgba(212, 175, 55, 0.05));
    border-color: rgba(37, 211, 102, 0.3);
}

.whatsapp-card:hover {
    border-color: #25d366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

.whatsapp-icon {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #128c7e, #25d366);
}

.whatsapp-btn i {
    font-size: 1.3rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.contact-form-wrapper::before {
    content: '✉';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.1;
}

.contact-form-wrapper h2 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.contact-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-group .required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.captcha-group .captcha-display {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 1.1rem;
}

.captcha-group .captcha-question {
    letter-spacing: 1px;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    animation: slideIn 0.3s ease;
}

.alert i {
    font-size: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 2px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Map Section */
.map-section {
    margin-top: 4rem;
    position: relative;
}

.map-section .section-title {
    color: var(--primary-gold);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    position: relative;
}

.map-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
    border-color: var(--primary-gold);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-emoji {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: calc(70px + 2rem) 0 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-form-wrapper::before {
        font-size: 2rem;
        top: 10px;
        right: 10px;
    }

    .map-container iframe {
        height: 350px;
    }

    .hero-section {
        min-height: 50vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-emoji {
        font-size: 3rem;
    }
}

/* ===== Phone Input with Flag Dropdown ===== */
.phone-input-container {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    position: relative;
    direction: ltr;
    width: 100%;
    overflow: visible;
}
.phone-input-container:focus-within {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.custom-phone-dropdown {
    position: relative;
    min-width: 100px;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    overflow: visible;
}
.phone-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.875rem 0.75rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
    justify-content: center;
}
.phone-dropdown-selected:hover {
    background: rgba(255, 255, 255, 0.05);
}
.phone-dropdown-selected.active {
    background: rgba(212, 175, 55, 0.1);
}
.phone-flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.phone-code {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--primary-gold);
    flex-shrink: 0;
}
.dropdown-arrow {
    color: rgba(255,255,255,0.6);
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}
.phone-dropdown-selected.active .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-gold);
}
.phone-dropdown-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 280px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    max-height: 240px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}
.phone-dropdown-options.show {
    display: block;
    animation: dropIn 0.25s ease forwards;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.phone-dropdown-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: #fff;
    transition: background 0.2s;
}
.phone-dropdown-option:last-child { border-bottom: none; }
.phone-dropdown-option:hover { background: var(--primary-gold); }
.phone-dropdown-option:hover .country-name,
.phone-dropdown-option:hover .phone-code { color: #000 !important; }
.phone-dropdown-option .country-name {
    font-family: var(--font-arabic);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    flex: 1;
}
.phone-dropdown-options::-webkit-scrollbar { width: 5px; }
.phone-dropdown-options::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.phone-dropdown-options::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 3px; }
.phone-input-container .form-control.phone-number-input {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 0 8px 8px 0;
    box-shadow: none;
}
