/* Booking Form - Standalone Styles (Independent from main CSS) */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* CSS Variables for consistency */
:root {
    --primary-teal: #2d8783;
    --light-teal: #4dd0e1;
    --text-dark: #333;
    --text-grey: #666;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --section-padding: 80px 20px;
}

/* Main Booking Section */
.booking-section {
    padding: 40px 20px;
    background: white;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.booking-header {
    text-align: center;
    margin-bottom: 30px;
}

.booking-header h1 {
    font-size: 2.4rem;
    color: #00695c;
    margin-bottom: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.booking-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Progress Indicator - With Progress Bar */
.progress-container {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0;
    position: relative;
}

/* Progress Bar */
.progress-bar {
    position: relative;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 15px;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-teal), var(--light-teal));
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.progress-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    transform: none !important;
}

.progress-steps .step.active {
    opacity: 1;
}

.progress-steps .step.completed {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.progress-steps .step.active .step-number {
    background: var(--primary-teal);
    color: white;
}

.progress-steps .step.completed .step-number {
    background: var(--light-teal);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-grey);
    text-align: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    line-height: 1.2;
}

.progress-steps .step.active .step-label {
    color: var(--primary-teal);
    font-weight: 700;
}

/* Override any pseudo-elements from other CSS files */
.progress-steps .step::before,
.progress-steps .step::after {
    display: none !important;
}

.progress-steps .step:hover {
    transform: none !important;
    box-shadow: none !important;
    background: none !important;
    border-color: transparent !important;
}

/* Form Styles */
.booking-form {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(45, 135, 131, 0.1);
}

.form-step {
    display: none;
    padding: 0;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content h2 {
    font-size: 2.2rem;
    color: #00695c;
    margin-bottom: 15px;
    font-weight: 900;
    text-align: center;
    line-height: 1.3;
}

.step-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.6;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

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

.optional-text {
    font-weight: 400;
    color: #888;
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    color: var(--text-dark);
    background: #fdfdfd;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
    font-weight: 500;
}

.booking-form .form-group select {
    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='%23666' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
    padding-right: 50px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px rgba(45, 135, 131, 0.15);
    background: white;
}

.booking-form .form-group select:focus {
    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='%232d8783' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Radio and Checkbox Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: var(--primary-teal);
    background: rgba(45, 135, 131, 0.05);
    transform: translateY(-2px);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    display: none;
}

.radio-option .radio-custom,
.checkbox-option .checkbox-custom {
    width: 22px !important;
    height: 22px !important;
    border: 3px solid #ccc;
    border-radius: 50% !important;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-sizing: content-box !important;
    display: inline-block !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    vertical-align: middle !important;
    align-self: center !important;
}

.checkbox-option .checkbox-custom {
    border-radius: 6px !important;
}

.radio-option input[type="radio"]:checked + .radio-custom,
.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-teal);
    background: var(--primary-teal);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-label,
.checkbox-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.4;
}

/* Special Elements */
.disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #fef9e7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #f39c12;
}

.disclaimer p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.5;
}

.disclaimer-icon {
    font-weight: bold;
    margin-right: 8px;
}

.visit-charges-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #dee2e6;
    text-align: center;
}

.charges-box h3 {
    color: var(--primary-teal);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.charges-box p {
    margin-bottom: 15px;
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.5;
}

.info-link {
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    text-align: center;
    margin-top: 10px;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.info-link:hover {
    text-decoration: underline;
    color: #1a5f5c;
}

.location-btn {
    background: linear-gradient(45deg, var(--primary-teal), var(--light-teal));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 135, 131, 0.3);
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 135, 131, 0.4);
}

.booking-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #dee2e6;
}

.booking-summary h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.summary-note p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.5;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 16px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 140px;
    font-family: inherit;
}

.btn-prev {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    color: var(--text-dark);
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-prev:hover {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    border-color: #adb5bd;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-next,
.btn-submit {
    background: linear-gradient(45deg, #2d8783, #4dd0e1);
    color: white;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(45, 135, 131, 0.4);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(45, 135, 131, 0.6);
    background: linear-gradient(45deg, #1a6b67, #26c6da);
}

.btn-submit {
    background: linear-gradient(45deg, #2d8783, #4dd0e1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 25px;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-dark);
}

.modal-content h3 {
    color: var(--primary-teal);
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 700;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-body li::before {
    content: '✓';
    color: var(--primary-teal);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-section {
        padding: 20px 0;
        margin-top: 0;
    }
    
    .booking-section .container {
        max-width: 100%;
        padding: 0;
    }
    
    .booking-header {
        margin-bottom: 30px;
        padding: 0 20px;
    }
    
    .booking-header h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .booking-header p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .progress-container {
        margin-bottom: 30px;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .progress-bar {
        margin-bottom: 15px;
    }
    
    .progress-steps {
        justify-content: space-between;
        gap: 8px;
    }
    
    .progress-steps .step {
        flex: 1;
        min-width: 60px;
    }
    
    .progress-steps .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .progress-steps .step-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .booking-form {
        max-width: 100%;
        margin: 0;
        padding: 30px 20px;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    .form-step {
        padding: 0;
    }
    
    .step-content h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .step-content p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .radio-option,
    .checkbox-option {
        padding: 12px 16px;
    }
    
    .radio-option .radio-custom,
    .checkbox-option .checkbox-custom {
        width: 20px !important;
        height: 20px !important;
        margin-right: 12px;
        box-sizing: content-box !important;
        border-radius: 50% !important;
        display: inline-block !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
        vertical-align: middle !important;
        align-self: center !important;
    }
    
    .checkbox-option .checkbox-custom {
        border-radius: 6px !important;
    }
    
    .disclaimer,
    .visit-charges-info,
    .booking-summary {
        padding: 18px;
        margin: 20px 0;
    }
    
    .form-actions {
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
        margin-top: 30px;
        padding-top: 25px;
    }
    
    /* When only next button exists (first step) - position on right */
    .form-actions .btn-next:only-child {
        margin-left: auto;
        margin-right: 0;
        width: auto;
        min-width: 130px;
        padding: 16px 28px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 8px;
        box-shadow: 0 3px 8px rgba(0, 123, 255, 0.25);
        transition: all 0.3s ease;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* When both buttons exist */
    .btn-prev {
        width: auto;
        min-width: 130px;
        padding: 16px 28px;
        font-size: 1rem;
        font-weight: 600;
        margin-right: auto;
        border-radius: 8px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 2px solid #dee2e6;
        color: #495057;
        transition: all 0.3s ease;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    
    .btn-prev:hover {
        background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
        border-color: #adb5bd;
        color: #343a40;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .btn-next,
    .btn-submit {
        width: auto;
        min-width: 130px;
        padding: 16px 28px;
        font-size: 1rem;
        font-weight: 600;
        margin-left: auto;
        border-radius: 8px;
        box-shadow: 0 3px 8px rgba(0, 123, 255, 0.25);
        transition: all 0.3s ease;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-next:hover,
    .btn-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(0, 123, 255, 0.35);
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 25px;
        width: 95%;
    }
    
    .modal-content h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .booking-section {
        padding: 15px 0;
    }
    
    .booking-header {
        padding: 0 15px;
    }
    
    .booking-header h1 {
        font-size: 1.9rem;
    }
    
    .progress-container {
        padding: 0 15px;
    }
    
    .progress-bar {
        margin-bottom: 12px;
    }
    
    .progress-steps .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .progress-steps .step-label {
        font-size: 0.7rem;
    }
    
    .booking-form {
        max-width: 100%;
        margin: 0;
        padding: 25px 15px;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    .step-content h2 {
        font-size: 1.6rem;
    }
    
    .progress-steps {
        gap: 4px;
    }
    
    .progress-steps .step {
        min-width: 50px;
    }
}

/* Success/Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Loading States */
.btn-next.loading,
.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-next.loading::after,
.btn-submit.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}