@media (max-width: 992px) {
    .main-nav .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    header {
        padding: 0 5%;
        top: 10px;
    }
    
    .nav-container {
        width: 90%;
        padding: 0 20px;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }
    
    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .discover-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .features-grid,
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    footer .footer-content {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        width: 95%;
        padding: 0 15px;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .discover-btn {
        margin-top: 15px;
    }
}

.section {
    scroll-margin-top: 80px;
}

.feature-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.property-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.property-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn {
    cursor: pointer;
    font-weight: 500;
    border: none;
    font-size: 16px;
}

.btn:active {
    transform: translateY(0);
}

.nav-menu a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 80px 0;
    color: white;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Decorative Images */
.hero-image-collage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-hero-main-image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.decorative-star {
    position: absolute;
    z-index: 1;
}

.star-top {
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
}

.star-bottom {
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
}

/* Hero Text Content */
.hero-text-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background-color: #f9fafb;
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

/* Contact Info */
.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.contact-details p {
    margin: 0;
    color: #4b5563;
}

.contact-details a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: var(--color-primary);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Form Submit Area */
.form-submit-wrapper {
    margin-top: 30px;
    margin-bottom: 0;
}

/* Submit Button - Very explicit styling */
.contact-submit-btn {
    display: block !important;
    width: 100%;
    background: #e31e24 !important;
    background: var(--color-primary, #e31e24) !important;
    color: #ffffff !important;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 50px;
    line-height: 1.5;
    text-align: center;
}

.contact-submit-btn:hover {
    background: #0051a5 !important;
    background: var(--color-secondary, #0051a5) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Legacy button styles kept for compatibility */
.form-submit {
    margin-top: 20px;
}

/* Submit Button */
.contact-form button[type="submit"],
.btn.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.contact-form button[type="submit"]:hover,
.btn.btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Contact Page Responsive Design */
@media (max-width: 1024px) {
    .contact-hero-grid,
    .contact-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero-main-image {
        max-width: 300px;
        height: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 0;
    }
    
    .contact-form-section {
        padding: 60px 0;
    }
    
    .hero-text-content h1 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-info-item {
        padding: 15px;
    }
    
    .star-top,
    .star-bottom {
        width: 60px;
        height: 60px;
    }
}
