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

/* ===== BOOKING FORM STYLES ===== */

/* ===== GLOBAL FORM STYLING ===== */
body {
    background-image: url('../../Images/white_beach.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}

#book-form {
    background-color: transparent;
    padding: 2rem 0;
    min-height: 100vh;
}

/* Enhanced Header Styling */
.card .text-center.mb-4 {
    position: relative;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem !important;
}

/* Error Field Styling - Hidden by default */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    padding: 0.25rem 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.field-error.show {
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
}

.field-error:not(:empty) {
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
}

.card .text-center.mb-4 img {
    width: 80px;
    height: auto;
    filter: brightness(1.2);
    margin-bottom: 1rem !important;
}

/* Logo and header specific styles */
.header-logo {
    max-height: 60px;
}

.header-spacer {
    width: 40px;
}

/* Badge styling */
.badge.bg-danger {
    background: #dc3545 !important;
    border: none;
    color: white !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 25px;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

.card h2 {
    color: #333 !important;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem !important;
}

.card p {
    color: #666 !important;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 2rem !important;
}

.card {
    border: none;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

#form-step-1 .card {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.card-header {
    border-radius: 20px 20px 0 0 !important;
    border: none;
    padding: 2rem 1.5rem;
    min-height: 80px;
}

.card-body {
    background-color: white;
    padding: 2rem !important;
    border-radius: 20px;
}

/* ===== FORM CONTROLS STYLING ===== */
.form-floating > .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    height: calc(3.5rem + 2px);
}

.form-floating > .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    background-color: white;
}

.form-floating > label {
    color: #999;
    font-weight: 400;
    font-size: 0.9rem;
}

/* ===== BUTTON STYLING ===== */
.btn {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-secondary {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    background-color: white;
    color: #666;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #333;
}

/* ===== FIELD ERROR STYLING ===== */
.field-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

.form-control.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #book-form {
        padding: 1rem 0;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .card-header {
        padding: 1rem !important;
    }
    
    .card-header h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .col-sm-6 {
        margin-bottom: 1rem;
    }
}

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

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

/* ===== FORM STEP DISPLAY RULES ===== */
.form-step {
    display: none;
}

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

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

/* ===== ENHANCED SPACING AND LAYOUT ===== */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* ===== FORM FIELD ENHANCEMENTS ===== */
.form-floating {
    position: relative;
    margin-bottom: 1rem;
}

.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > label {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
    line-height: 1.25;
}

/* ===== BUTTON ENHANCEMENTS ===== */
.btn[style*="background-color: #ef4444"] {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn[style*="background-color: #ef4444"]:hover {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
    transform: translateY(-1px);
}

/* ===== LOADING STATES ===== */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form validation error styling - updated */
.field-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}
  
.form-control.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.form-control.is-invalid + label::after {
    content: "⚠";
    color: #dc2626;
    margin-left: 0.25rem;
    font-size: 1rem;
}

/* Updated form control styling to match design */
#book-form .form-control,
#book-form .form-select,
#book-form input[type="text"],
#book-form input[type="email"],
#book-form input[type="tel"],
#book-form input[type="date"],
#book-form select,
#book-form textarea {
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    background: #f8f9fa !important;
    font-size: 1rem !important;
    padding: 1rem 0.75rem !important;
}

#book-form .form-control:focus,
#book-form .form-select:focus,
#book-form input[type="text"]:focus,
#book-form input[type="email"]:focus,
#book-form input[type="tel"]:focus,
#book-form input[type="date"]:focus,
#book-form select:focus,
#book-form textarea:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
    background: white !important;
}

/* ===== UTILITY CLASSES ===== */
.text-danger {
    color: #dc2626 !important;
}

.bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

.border-danger {
    border-color: #dc2626 !important;
}

/* ===== INLINE STYLES MOVED FROM HTML ===== */

/* Logo max-height style */
.logo-max-height {
    max-height: 60px;
}

/* Header spacer for centering */
.header-spacer {
    width: 40px;
}

/* Button red style */
.btn-red {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
}