/* Real Estate Enquiry Page CSS */
/* Import Google Fonts - Same as other pages */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
.enquiry-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FULL WIDTH OVERRIDE - Same as other pages */
.enquiry-page {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

/* Force all sections to take full width */
.enquiry-page section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Container styles - Consistent padding */
.enquiry-page .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Typography - Same fonts as other pages */
.enquiry-page h1,
.enquiry-page h2,
.enquiry-page h3,
.enquiry-page h4 {
    font-family: 'Lora', serif;
}

.enquiry-page p,
.enquiry-page span,
.enquiry-page div,
.enquiry-page label {
    font-family: 'Montserrat', sans-serif;
}

/* Enquiry Form Section */
.enquiry-form-section {
    background: white !important;
    padding: 120px 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header h2 {
    font-family: 'Lora', serif;
    font-size: 3.2rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.form-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

/* Form Styles */
.enquiry-form {
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.form-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: block;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row.focused {
    transform: translateY(-2px);
}

.form-row input,
.form-row select,
.form-row textarea {
    flex: 1;
    padding: 8px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    color: #333;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #125849;
    box-shadow: 0 0 0 3px rgba(18, 88, 73, 0.1);
}

.form-row input.error,
.form-row select.error,
.form-row textarea.error {
    border-color: #e53e3e;
    background-color: rgba(229, 62, 62, 0.05);
}

.form-row select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.form-row textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Montserrat', sans-serif;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #999;
    font-weight: 400;
}

/* Checkbox Row */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #125849;
    cursor: pointer;
}

.checkbox-row label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.submit-btn {
    background: linear-gradient(135deg, #125849, #1a7a62);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 18px 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0d4035, #125849);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(18, 88, 73, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Contact Information Section */
.contact-info-section {
    background: white !important;
    padding: 120px 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.contact-card {
    background: white;
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.contact-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #125849, #1a7a62);
    border-radius: 50%;
    color: white;
}

.contact-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.contact-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #125849;
    margin-bottom: 8px;
}

.contact-card span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #999;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RESPONSIVE DESIGN - MOBILE FIRST APPROACH */

/* Tablet Styles - 1024px and below */
@media (max-width: 1024px) {
    .enquiry-page .container {
        padding: 0 30px !important;
    }
    
    .hero-text h1 {
        font-size: 4.5rem;
    }
    
    .form-container {
        padding: 50px 30px;
    }
    
    .form-header h2,
    .choose-text h2 {
        font-size: 2.8rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile Styles - 768px and below */
@media (max-width: 768px) {
    .enquiry-page .container {
        padding: 0 20px !important;
    }
    
    .enquiry-hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding-top: 60px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
        margin-bottom: 40px;
    }
    
    .hero-subheading {
        font-size: 1.1rem;
    }
    
    .enquiry-form-section,
    .why-choose-section,
    .contact-info-section {
        padding: 80px 0 !important;
    }
    
    .form-container {
        padding: 40px 25px;
        border-radius: 15px;
    }
    
    .enquiry-form {
        padding: 40px 25px;
    }
    
    .form-header h2,
    .choose-text h2 {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }
    
    .form-header p,
    .choose-text p {
        font-size: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row input,
    .form-row select,
    .form-row textarea {
        padding: 14px 16px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .choose-image {
        height: 250px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-card {
        padding: 40px 25px;
    }
}

/* Small Mobile Styles - 480px and below */
@media (max-width: 480px) {
    .enquiry-page .container {
        padding: 0 15px !important;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-subheading {
        font-size: 1rem;
    }
    
    .form-header h2,
    .choose-text h2 {
        font-size: 1.8rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .enquiry-form {
        padding: 30px 20px;
    }
    
    .contact-card {
        padding: 35px 20px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .submit-btn {
        padding: 16px 30px;
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .enquiry-page {
        font-size: 12pt;
        line-height: 1.4;
        color: #000 !important;
        background: white !important;
    }
    
    .enquiry-hero,
    .why-choose-section {
        background: white !important;
        color: #000 !important;
    }
    
    .hero-bg-image {
        display: none;
    }
    
    .submit-btn {
        background: #125849 !important;
        color: white !important;
    }
    
    .form-container,
    .enquiry-form,
    .contact-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}

/* Performance Optimization */
.contact-card,
.form-container,
.choose-image {
    will-change: transform, box-shadow;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .contact-card,
    .submit-btn,
    .form-row,
    .form-row input,
    .form-row select,
    .form-row textarea {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus Styles for Keyboard Navigation */
.submit-btn:focus,
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus,
.checkbox-row input:focus {
    outline: 3px solid #125849;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .enquiry-page {
        background: white !important;
        color: black !important;
    }
    
    .form-container,
    .enquiry-form,
    .contact-card {
        border: 2px solid black;
    }
    
    .contact-icon {
        background: #125849 !important;
    }
    
    .submit-btn {
        background: #125849 !important;
        color: white !important;
        border: 2px solid black;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.enquiry-page img {
    transition: opacity 0.3s ease;
}

.enquiry-page img[loading="lazy"] {
    opacity: 0;
}

.enquiry-page img[loading="lazy"].loaded {
    opacity: 1;
}

/* Additional Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Form Validation States */
.enquiry-form input.success,
.enquiry-form select.success,
.enquiry-form textarea.success {
    border-color: #38a169;
    background-color: rgba(56, 161, 105, 0.05);
}

/* Custom Scrollbar */
.enquiry-form textarea::-webkit-scrollbar {
    width: 6px;
}

.enquiry-form textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.enquiry-form textarea::-webkit-scrollbar-thumb {
    background: #125849;
    border-radius: 3px;
}

.enquiry-form textarea::-webkit-scrollbar-thumb:hover {
    background: #0d4035;
}