/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
.bda-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bda-form-group {
    margin-bottom: 20px;
}

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

.bda-form-group input[type="text"],
.bda-form-group input[type="email"],
.bda-form-group input[type="number"],
.bda-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.bda-date-inputs {
    display: flex;
    gap: 10px;
}

.bda-date-inputs select {
    flex: 1;
}

.bda-date-inputs select:first-child {
    flex: 2;
}

.bda-time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bda-time-inputs input {
    width: 80px;
}

.bda-submit-btn {
    width: 100%;
    padding: 12px;
    background: #241E8B;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.bda-submit-btn:hover {
    background: #005a87;
}

.bda-loader {
    text-align: center;
    margin-top: 15px;
    color: #0073aa;
    font-weight: 600;
}

.bda-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

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

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

.bda-location-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.pac-container {
    z-index: 10000 !important;
}

/* Progress Overlay Styles */
.bda-overlay {
    opacity: 0;              /* Hidden by default */
    visibility: hidden;      /* Not interactable */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 8, 49, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.bda-overlay.show {
    opacity: 1;              /* Visible */
    visibility: visible;     /* Interactable */
}

.bda-overlay-content {
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 40px;
}

.bda-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: bda-spin 1s linear infinite;
}

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

.bda-overlay-title {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 600;
    color: white;
}

.bda-progress-steps {
    margin: 30px 0;
    text-align: left;
}

.bda-step {
    display: flex;
    align-items: center;
    padding: 12px 0;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.bda-step.active {
    opacity: 1;
    transform: translateX(5px);
}

.bda-step.completed {
    opacity: 0.7;
}

.bda-step-icon {
    font-size: 20px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.bda-step.active .bda-step-icon {
    animation: bda-pulse 1.5s ease-in-out infinite;
    color: #4CAF50;
}

.bda-step.completed .bda-step-icon {
    color: #4CAF50;
}

.bda-step.completed .bda-step-icon::before {
    content: "✓";
}

@keyframes bda-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.bda-step-text {
    font-size: 16px;
}

.bda-overlay-message {
    margin-top: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.bda-overlay-submessage {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}