/* Main booking form styles */
.fbw-booking-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 35px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    transition: all 0.3s ease;
}

.fbw-booking-form:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Form Header */
.fbw-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.fbw-form-header h3 {
    color: #1a5f7a;
    font-size: 26px;
    margin: 0 0 10px 0;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.fbw-form-header h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #25D366;
    border-radius: 2px;
}

/* Page title styling */
.fbw-page-title {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #25D366;
    padding: 12px 18px;
    margin: 20px 0 0 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #1a5f7a;
    font-weight: 500;
}

.fbw-page-title-icon {
    font-size: 20px;
}

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

/* Row layout for time fields */
.fbw-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.fbw-form-group.half {
    flex: 1;
    margin-bottom: 0;
}

/* Input Fields */
.fbw-form-group input[type="text"],
.fbw-form-group input[type="tel"],
.fbw-form-group input[type="email"],
.fbw-form-group input[type="date"],
.fbw-form-group input[type="time"],
.fbw-form-group input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
}

.fbw-form-group input::placeholder {
    color: #94a3b8;
    opacity: 1;
    font-weight: 400;
}

.fbw-form-group input:focus {
    outline: none;
    border-color: #25D366;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1);
    transform: translateY(-1px);
}

/* Date and Time Input Styles */
input[type="date"],
input[type="time"] {
    cursor: pointer;
    position: relative;
}

input[type="date"]:before,
input[type="time"]:before {
    content: attr(placeholder);
    color: #94a3b8;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

input[type="date"]:focus:before,
input[type="time"]:focus:before,
input[type="date"]:valid:before,
input[type="time"]:valid:before {
    display: none;
}

/* Style for date/time picker icons */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
    background: transparent;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Number input styling */
.fbw-form-group input[type="number"] {
    -moz-appearance: textfield;
}

.fbw-form-group input[type="number"]::-webkit-inner-spin-button,
.fbw-form-group input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.5;
}

/* Submit Button */
.fbw-book-now-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fbw-book-now-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.fbw-book-now-btn:active {
    transform: translateY(0);
}

.fbw-book-now-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Form Notice */
.fbw-form-notice {
    font-size: 12px;
    color: #64748b;
    margin: 10px 0 0 0;
    font-style: italic;
    text-align: center;
}

/* Messages */
#fbwFormMessage {
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.fbw-message {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.fbw-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fbw-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.fbw-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading state */
.fbw-book-now-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.fbw-book-now-btn.loading::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: fbw-spin 1s linear infinite;
}

@keyframes fbw-spin {
    to { transform: rotate(360deg); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .fbw-booking-form {
        padding: 25px;
        margin: 15px;
    }
    
    .fbw-form-header h3 {
        font-size: 22px;
    }
    
    .fbw-book-now-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .fbw-form-row {
        flex-direction: column;
        gap: 18px;
    }
    
    .fbw-form-group.half {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fbw-booking-form {
        padding: 20px;
    }
    
    .fbw-form-header h3 {
        font-size: 20px;
    }
    
    .fbw-page-title {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .fbw-form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    input[type="date"], 
    input[type="time"] {
        min-height: 50px;
    }
    
    input[type="date"]:before,
    input[type="time"]:before {
        background: transparent;
    }
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    input[type="date"],
    input[type="time"] {
        min-height: 50px;
    }
}