/* Magicbus Booking Engine Form Styles */

/* Form Container */
.mb-booking-form {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Page 1: Account Setup */
.mb-login-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 20px auto;
    max-width: 500px;
}

.mb-welcome-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.mb-register-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.mb-register-link:hover {
    text-decoration: underline;
}

.mb-form-field {
    margin-bottom: 20px;
}

.mb-form-field label {
    display: block;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.mb-form-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.mb-form-field input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Password field styling */
.mb-form-field.password-field input {
    -webkit-text-security: disc;
    -moz-text-security: disc;
    text-security: disc;
}

.mb-forgot-password {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    display: block;
    text-align: center;
    margin: 15px 0;
}

.mb-button {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.mb-button-primary {
    background: #007bff;
    color: white;
}

.mb-button-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.mb-button-outline {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.mb-button-outline:hover {
    background: #007bff;
    color: white;
}

.mb-button-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.mb-registration-fields {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.mb-registration-fields.active {
    display: block;
}

/* Hide registration fields by default - FRONTEND ONLY */
body:not(.wp-admin) .gform_wrapper .mb-registration-fields,
body:not(.wp-admin) .gform_wrapper .gfield.registration-field {
    display: none;
}

/* Page 2: Destination Selection */
.mb-destination-section {
    padding: 40px 20px;
}

.mb-destination-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

.mb-destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.mb-destination-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mb-destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.mb-destination-card.selected {
    border: 3px solid #007bff;
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.2);
}

.mb-destination-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
}

.mb-destination-info {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.mb-destination-check {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    background: #007bff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.mb-destination-card.selected .mb-destination-check {
    display: flex;
}

.mb-destination-name {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Radio Button Styling */
.mb-destination-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mb-destination-radio:checked + .mb-destination-card {
    border: 3px solid #007bff;
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.2);
}

.mb-destination-radio:checked + .mb-destination-card .mb-destination-check {
    display: flex;
}

/* Continue Button */
.mb-continue-button {
    text-align: center;
    margin-top: 30px;
}

.mb-continue-button .mb-button {
    padding: 16px 40px;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mb-login-section {
        margin: 10px;
        padding: 30px 20px;
    }
    
    .mb-welcome-title {
        font-size: 24px;
    }
    
    .mb-destination-title {
        font-size: 28px;
    }
    
    .mb-destination-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mb-button-group {
        flex-direction: column;
    }
    
    .mb-button {
        width: 100%;
    }
}

/* Loading States */
.mb-loading {
    opacity: 0.6;
    pointer-events: none;
}

.mb-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Validation Styles */
.mb-field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.mb-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.mb-field-error + .mb-error-message {
    display: block;
}

/* Success States */
.mb-field-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
} 