/* Contact Hero */
.contact-hero {
    padding: 160px 20px 80px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE8B3 100%);
    text-align: center;
}

.contact-hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.contact-hero p {
    font-size: 24px;
    color: #666;
}

/* Contact Content */
.contact-content {
    padding: 100px 20px;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Form Section */
.contact-form-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 40px;
}

.booking-form {
    background: #F5F5F7;
    padding: 40px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: white;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A55E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C9A55E;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    background: #C9A55E;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background: #B89440;
    transform: translateY(-2px);
}

/* Contact Info Section */
.contact-info-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 40px;
}

.info-card {
    background: #F5F5F7;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.info-card h3 i {
    color: #C9A55E;
    margin-right: 10px;
}

.info-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.info-card a {
    color: #C9A55E;
    text-decoration: none;
    font-weight: 500;
}

.info-card a:hover {
    text-decoration: underline;
}

.info-note {
    font-size: 14px !important;
    color: #999 !important;
    margin-top: 8px;
}

/* FAQ Section */
.faq-section {
    background: #F5F5F7;
    padding: 24px;
    border-radius: 12px;
    margin-top: 30px;
}

.faq-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item strong {
    display: block;
    font-size: 16px;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Google Places Autocomplete Styling */
.pac-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pac-item {
    padding: 10px 12px;
    font-size: 14px;
    border-top: 1px solid #f0f0f0;
    cursor: pointer;
}

.pac-item:hover {
    background-color: #FFF9E6;
}

.pac-item-selected {
    background-color: #FFF9E6;
}

.pac-item-query {
    color: #1d1d1f;
    font-weight: 500;
}

.pac-icon {
    display: none;
}

/* Form validation styles - only show after submit attempt */
.booking-form.was-validated .form-group input:invalid,
.booking-form.was-validated .form-group select:invalid,
.booking-form.was-validated .form-group textarea:invalid {
    border-color: #ff3b30;
}

.booking-form.was-validated .form-group input:valid,
.booking-form.was-validated .form-group select:valid,
.booking-form.was-validated .form-group textarea:valid {
    border-color: #34c759;
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Ensure dropdowns look good on tablets */
    .form-group select {
        background-position: right 11px center;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 140px 15px 60px;
    }

    .contact-hero h1 {
        font-size: 36px;
    }

    .contact-hero p {
        font-size: 18px;
    }

    .contact-content {
        padding: 60px 15px;
    }

    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 28px;
    }

    .booking-form {
        padding: 20px 16px;
        background: #F5F5F7;
        border-radius: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-group {
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Ensure form inputs are mobile-friendly and don't overflow */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 12px;
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        max-width: 100%;
    }

    /* Special handling for date inputs on mobile */
    .form-group input[type="date"] {
        padding: 14px 12px;
        min-height: 48px;
        box-sizing: border-box;
        width: 100%;
    }

    .form-group select {
        background-position: right 10px center;
        background-size: 18px;
        padding-right: 36px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Mobile-optimized autocomplete dropdown */
    .pac-container {
        max-width: calc(100vw - 40px);
        font-size: 15px;
    }

    .submit-button {
        padding: 16px;
        font-size: 17px;
        width: 100%;
        box-sizing: border-box;
        min-height: 52px;
        touch-action: manipulation;
    }

    /* Fix info cards on mobile */
    .info-card {
        padding: 20px;
        margin-bottom: 16px;
    }

    .faq-section {
        padding: 20px;
        margin-top: 24px;
    }

    .faq-section h3 {
        font-size: 22px;
    }
}

/* Additional iPhone/Safari specific fixes */
@media (max-width: 480px) {
    .contact-hero {
        padding: 120px 12px 50px;
    }

    .contact-hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .contact-content {
        padding: 50px 12px;
    }

    .booking-form {
        padding: 16px 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 10px;
        font-size: 16px;
    }

    .form-group input[type="date"] {
        padding: 12px 10px;
        min-height: 46px;
    }

    .form-group select {
        padding-right: 32px;
        background-size: 16px;
    }

    .submit-button {
        padding: 14px;
        font-size: 16px;
        min-height: 50px;
    }

    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 24px;
    }
}
