@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@400;500;600&display=swap');

/* Body Background */
body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f0f8f0;
    margin: 0;
    padding: 0;
    padding-top: 64px;
}

/* Hero Section Styles */
.hero-section {
    background: #0a3970;
    color: #fff;
    padding: 76px 0 40px 0;
    text-align: center;
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Booking Section */
.booking-section {
    background: #f8f9fa;
    padding: 60px 0;
    min-height: 80vh;
}

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

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #fff;
    border: 2px solid #e9ecef;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    border-color: #ffd600;
    color: #0a3970;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.tab-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 214, 0, 0.4);
}

.tab-btn.active {
    background: #ffd600;
    border-color: #ffd600;
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.4);
    transform: translateY(-2px);
}

.tab-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.3);
}

.tab-icon {
    font-size: 1.5rem;
}

/* Tab Content */
.tab-content {
    position: relative;
    min-height: 400px;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Form Container */
.form-container {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-container h2 {
    font-family: 'Playfair Display', serif;
    color: #0a3970;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.form-description {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #ffd600;
}

.form-section h3 {
    font-family: 'Playfair Display', serif;
    color: #0a3970;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ffd600;
    border-radius: 50%;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd600;
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Required Field Indicator */
.form-group label[for*="required"]::after,
.form-group label:has(+ input[required])::after,
.form-group label:has(+ select[required])::after,
.form-group label:has(+ textarea[required])::after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.submit-btn {
    background: #ffd600;
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.submit-btn:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.4);
}

.reset-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.reset-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/* Error Message */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.error label {
    color: #dc3545;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .booking-section {
        padding: 40px 0;
    }
    
    .tab-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
    
    .form-container {
        padding: 24px;
        margin: 0 10px;
    }
    
    .form-container h2 {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-section {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .form-container {
        padding: 16px;
    }
    
    .form-container h2 {
        font-size: 1.6rem;
    }
    
    .form-description {
        font-size: 1rem;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
}

/* Animation for form sections */
.form-section {
    animation: slideInUp 0.6s ease-out;
}

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

/* Stagger animation for form sections */
.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }

/* Hover effects for form elements */
.form-group:hover label {
    color: #0a3970;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #ffd600;
}

/* Custom select styling */
.form-group select {
    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='currentColor' 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: 16px;
    padding-right: 40px;
}

/* Focus styles for accessibility */
.tab-btn:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.submit-btn:focus,
.reset-btn:focus {
    outline: 2px solid #0a3970;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .tab-navigation,
    .form-actions {
        display: none;
    }
    
    .form-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .form-section {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* Success Modal Styles */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    border: 2px solid #ffd600;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.success-modal.show .success-modal-content {
    transform: scale(1);
}

.success-icon {
    color: #28a745;
    margin-bottom: 20px;
}

.success-modal-content h2 {
    color: #0a3970;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.success-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.detail-item {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.detail-item strong {
    color: #28a745;
    font-weight: 600;
}

.success-message {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 20px 0;
}

.success-ok-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.success-ok-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Mobile Responsive for Success Modal */
@media (max-width: 768px) {
    .success-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .success-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .success-details {
        padding: 15px;
    }
    
    .detail-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .success-modal-content {
        padding: 25px 15px;
    }
    
    .success-modal-content h2 {
        font-size: 1.3rem;
    }
    
    .success-details {
        padding: 12px;
    }
    
    .detail-item {
        font-size: 0.85rem;
    }
} 

/* Responsive font sizes for headings and text */
.hero-section h1 {
  font-size: clamp(1.5rem, 6vw, 2.8rem);
}
.hero-section p, .form-description, .tab-btn, .tab-icon, .form-group label, .form-group input, .form-group select, .form-group textarea {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

/* Responsive buttons */
.btn, .tab-btn, .submit-btn, .reset-btn, .submit-booking-btn {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  min-height: 44px;
  padding: 14px 24px;
  border-radius: 10px;
}
@media (max-width: 700px) {
  .btn, .tab-btn, .submit-btn, .reset-btn, .submit-booking-btn {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

/* Hero background improvements */
.hero-section {
  background-size: cover !important;
  background-position: center !important;
  min-height: 220px;
  text-align: center;
  padding: 40px 10px 24px 10px;
}
@media (max-width: 700px) {
  .hero-section {
    min-height: 130px;
    padding: 36px 4vw 16px 4vw;
  }
  .hero-section h1 {
    font-size: clamp(1.1rem, 7vw, 2rem);
  }
  .hero-section p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
  }
}

/* Section padding/margin for mobile */
@media (max-width: 700px) {
  .booking-section, .form-container, .tab-navigation {
    padding-left: 2vw;
    padding-right: 2vw;
  }
}

/* Prevent text overflow */
.hero-section, .form-container, .tab-navigation, .tab-content {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Ensure all section headings are centered on mobile */
@media (max-width: 700px) {
  h1, h2, h3, h4, h5, h6, .hero-section h1 {
    text-align: center;
  }
}

/* Ensure nav links and buttons are touch-friendly */
@media (max-width: 700px) {
  .nav-links a, .btn, .tab-btn, .submit-btn, .reset-btn, .submit-booking-btn {
    min-height: 48px;
    font-size: clamp(1rem, 3vw, 1.15rem);
    padding: 14px 18px;
  }
} 