/* ======== Global Settings ======== */
:root {
    --primary-color: #0a2d4d;  /* Dark, luxury blue */
    --secondary-color: #d4af37; /* Subtle gold */
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    background-color: var(--bg-white);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.2rem;
}

section {
    padding: 4rem 0;
}

/* ======== Buttons ======== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}


/* ======== 1. Navbar ======== */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ======== 2. Hero Section ======== */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--bg-white);
    padding: 0;
    margin-top: 70px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* لجعل النص أوضح */
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content .pre-title {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--bg-white);
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    font-weight: 300;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ======== 3. Highlights Section ======== */
.highlights {
    background-color: var(--bg-light);
}

.highlights .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 2rem;
}

.highlights .highlight-item h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
}

/* ======== 4. Amenities Section ======== */
.amenities {
    background-color: var(--bg-white);
    text-align: center;
}
.amenities h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
}

.amenities-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* عمودين */
    gap: 1rem;
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.amenities-list li {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 5px;
    font-weight: 400;
}


/* ======== 5. & 6. Gallery Sections ======== */
.gallery {
    text-align: center;
}
#floorplan-gallery {
    background-color: var(--bg-light);
}

.gallery h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.gallery p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* عمودين */
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ======== 7. Contact Form Section (الكود الجديد) ======== */

/* هذا الكود تم نسخه منك مباشرة */
:root {
    --green-bg-start: #1e3a2d; /* لون أخضر داكن بداية التدرج */
    --green-bg-end: #0c2017;   /* لون أخضر أغمق نهاية التدرج */
    --text-color: #f0f0f0;
    --placeholder-color: rgba(240, 240, 240, 0.6);
    --border-color: rgba(240, 240, 240, 0.3);
    --register-button-bg: #d4af37; /* لون ذهبي */
    --register-button-hover-bg: #c19c2f;
    --whatsapp-button-bg: #25d366; /* لون واتساب أخضر */
    --whatsapp-button-hover-bg: #1da851;
}

/* تم تعديل هذا الكود ليتناسب مع الصفحة */
section#contact-form {
    margin: 0;
    background: linear-gradient(135deg, var(--green-bg-start), var(--green-bg-end));
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    padding: 4rem 20px; /* استخدام الحشو الخاص بالصفحة */
    box-sizing: border-box;
    /* تمت إزالة الأكواد الخاصة بالـ body */
}

.contact-section .registration-container {
    max-width: 700px; /* لتوسيع النموذج قليلاً ليطابق الصورة */
    width: 100%;
    margin: 0 auto; /* توسيط النموذج */
    padding: 40px 30px; /* زيادة الحشو الداخلي */
    background-color: rgba(0, 0, 0, 0.2); /* خلفية شفافة قليلاً */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px); /* تأثير ضبابي خفيف للخلفية */
}

section#contact-form h3 {
    text-align: center;
    color: var(--text-color);
    font-weight: 300; /* خط خفيف */
    margin-bottom: 40px; /* زيادة المسافة السفلية */
    font-size: 1.8em; /* حجم أكبر للعنوان */
    line-height: 1.4;
}

section#contact-form .form-group {
    margin-bottom: 25px; /* مسافة أكبر بين الحقول */
}                

section#contact-form .form-row {
    display: flex;
    gap: 20px; /* زيادة المسافة بين الحقول في نفس الصف */
}

section#contact-form .form-row .form-group {
    flex: 1;
}

section#contact-form input[type="text"],
section#contact-form input[type="email"],
section#contact-form input[type="tel"],
section#contact-form select {
    width: 100%;
    padding: 12px 0; /* تقليل الحشو الرأسي، وإزالة الأفقي */
    background-color: transparent; /* خلفية شفافة */
    border: none;
    border-bottom: 1px solid var(--border-color); /* خط سفلي فقط */
    color: var(--text-color);
    border-radius: 0; /* إزالة الحدود الدائرية */
    box-sizing: border-box;             
    font-size: 1em;
    transition: border-color 0.3s ease;
}                

section#contact-form input:focus,
section#contact-form select:focus {
    outline: none;
    border-bottom-color: var(--text-color); /* خط سفلي أبيض عند التركيز */
}

section#contact-form select {
    /* لجعل السهم يظهر بلون مختلف */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23f0f0f0" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

section#contact-form input::placeholder {
    color: var(--placeholder-color);
    font-weight: 300;
}

section#contact-form select option {
    background-color: var(--green-bg-start); /* خلفية داكنة لخيارات القائمة */
    color: var(--text-color);
}

section#contact-form .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

section#contact-form .checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    /* تخصيص مظهر مربع الاختيار */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0; /* منع التصغير */
}

section#contact-form .checkbox-group input[type="checkbox"]:checked {
    background-color: var(--register-button-bg); /* لون ذهبي عند التحديد */
    border-color: var(--register-button-bg);
}

section#contact-form .checkbox-group input[type="checkbox"]:checked::after {
    content: '✔'; /* علامة صح */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a1a1a; /* لون غامق لعلامة الصح */
    font-size: 0.9em;
    font-weight: bold;
}

section#contact-form .checkbox-group label {
    font-size: 0.9em;
    color: var(--placeholder-color);
    margin-top: 2px; /* لتنسيق أفضل مع مربع الاختيار */
}

section#contact-form .checkbox-group a {
    color: var(--text-color); /* لون النص الأبيض للروابط */
    text-decoration: underline; /* إضافة خط تحت الروابط */
}

section#contact-form .checkbox-group a:hover {
    color: var(--register-button-bg); /* لون ذهبي عند المرور بالماوس */
}

section#contact-form .button-group {
    display: flex;
    gap: 15px; /* المسافة بين الزرين */
    margin-top: 30px; /* مسافة أعلى مجموعة الأزرار */
}

section#contact-form .submit-btn, 
section#contact-form .whatsapp-btn {
    flex: 1; /* لجعل الزرين يأخذان مساحة متساوية */
    padding: 14px 25px;
    border: none;
    border-radius: 25px; /* حواف دائرية أكثر */
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    text-decoration: none; /* لإزالة التسطير من رابط الواتساب */
    color: #1a1a1a; /* لون نص غامق للأزرار */
    display: inline-flex; /* لتمكين توسيط النص داخله */
    align-items: center;
    justify-content: center;
}

section#contact-form .submit-btn {
    background-color: var(--register-button-bg);
}

section#contact-form .submit-btn:hover {
    background-color: var(--register-button-hover-bg);
    transform: translateY(-2px); /* تأثير رفع خفيف */
}

section#contact-form .whatsapp-btn {
    background-color: var(--whatsapp-button-bg);
}

section#contact-form .whatsapp-btn:hover {
    background-color: var(--whatsapp-button-hover-bg);
    transform: translateY(-2px);
}                

/* لتوسيع حقل رمز الدولة قليلاً */
section#contact-form .form-row .country-code-select {
    flex: 0 0 150px; /* زيادة عرض حقل رمز الدولة */
}

@media (max-width: 600px) {
    section#contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    section#contact-form .button-group {
        flex-direction: column;
    }
    section#contact-form .form-row .country-code-select {
         flex: 0 0 auto; /* يعود إلى العرض التلقائي في الشاشات الصغيرة */
    }
}


/* ======== 8. Footer Section ======== */
.footer {
    padding: 2.5rem 0;
    background-color: #000; /* تذييل أسود فخم */
    color: #aaa;
    text-align: center;
    font-size: 0.9rem;
}

.footer p {
    margin: 0.3rem 0;
}
.footer strong {
    color: var(--bg-white);
    font-size: 1.1rem;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    color: var(--bg-white);
    text-decoration: underline;
    margin: 0 10px;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--secondary-color);
}

/* ======== Mobile Responsive (Global) ======== */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .highlights .container {
        flex-direction: column;
    }
    
    .amenities-list {
        grid-template-columns: 1fr; /* عمود واحد في الموبايل */
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* عمود واحد في الموبايل */
    }

    .navbar .container {
        flex-direction: column;
        gap: 0.5rem;
    }
}