/* ============================================ */
/* BUDDYS BOOKING - Light Theme                */
/* Matches white background site               */
/* ============================================ */

/* ---- WRAPPER ---- */
.buddys-booking-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 60vh;
}

.buddys-booking-container {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    padding: 35px 30px;
    overflow: visible;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* ---- HEADER ---- */
.buddys-booking-header {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 60px;
}

.buddys-booking-header h1 {
    font-size: 2rem;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.buddys-booking-header p {
    color: #666666;
    margin: 0;
    font-size: 1rem;
}

/* ---- STEPS INDICATOR ---- */
.buddys-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 35px;
    padding: 0 20px;
}

.buddys-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.buddys-step.active {
    opacity: 1;
}

.buddys-step.completed {
    opacity: 0.8;
}

.buddys-step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #888888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.buddys-step.active .buddys-step-number {
    background: #e94560;
    color: white;
    border-color: #e94560;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.3);
}

.buddys-step.completed .buddys-step-number {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.buddys-step-label {
    font-size: 0.8rem;
    color: #888888;
    font-weight: 500;
}

.buddys-step.active .buddys-step-label {
    color: #e94560;
    font-weight: 600;
}

.buddys-step-connector {
    width: 50px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px 24px 10px;
    transition: background 0.3s;
}

.buddys-step.completed + .buddys-step-connector {
    background: #27ae60;
}

/* ---- STEP CONTENT ---- */
.buddys-step-content {
    display: none;
    animation: buddysFadeIn 0.4s ease;
}

.buddys-step-content.buddys-step-visible {
    display: block;
}

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

/* ---- TABLE CARDS GRID ---- */
.buddys-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.buddys-table-card {
    background: #fafafa;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.buddys-table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e94560;
    opacity: 0;
    transition: opacity 0.3s;
}

.buddys-table-card:hover {
    border-color: #e94560;
    background: #fff5f5;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.1);
}

.buddys-table-card:hover::before {
    opacity: 1;
}

.buddys-table-card .table-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 12px;
}

.buddys-table-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #1a1a2e;
    font-weight: 600;
}

.buddys-table-card .table-rate {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e94560;
}

.buddys-table-card .table-rate span {
    font-size: 0.8rem;
    color: #999999;
    font-weight: 400;
}

/* ---- LOADING ---- */
.buddys-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #999999;
}

.buddys-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8e8e8;
    border-top: 3px solid #e94560;
    border-radius: 50%;
    animation: buddysSpin 0.8s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes buddysSpin {
    to { transform: rotate(360deg); }
}

/* ---- SELECTED TABLE INFO ---- */
.buddys-selected-table-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(233,69,96,0.08), rgba(200,168,78,0.08));
    border: 1px solid rgba(233,69,96,0.2);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.buddys-selected-icon {
    font-size: 2.5rem;
}

.buddys-selected-table-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1a1a2e;
}

.buddys-selected-table-info .buddys-rate {
    margin: 3px 0 0 0;
    color: #e94560;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ---- FORM SECTIONS ---- */
.buddys-form-section {
    margin-bottom: 25px;
}

.buddys-form-section h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.buddys-form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.buddys-form-group {
    margin-bottom: 16px;
    flex: 1;
    min-width: 200px;
}

.buddys-form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    color: #555555;
    margin-bottom: 6px;
}

.buddys-input {
    width: 100%;
    padding: 11px 14px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1a1a2e;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.buddys-input:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233,69,96,0.08);
}

.buddys-input::placeholder {
    color: #bbbbbb;
}

.buddys-textarea {
    resize: vertical;
    min-height: 80px;
}

select.buddys-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 35px;
}

.buddys-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
}

/* ---- DURATION BUTTONS ---- */
.buddys-duration-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.buddys-duration-btn {
    padding: 10px 22px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #555555;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.buddys-duration-btn:hover {
    border-color: #e94560;
    color: #e94560;
    background: #fff5f5;
}

.buddys-duration-btn.selected {
    background: #e94560;
    color: white;
    border-color: #e94560;
    box-shadow: 0 0 15px rgba(233,69,96,0.2);
}

/* ---- PAYMENT OPTIONS ---- */
.buddys-payment-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.buddys-payment-option {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.buddys-payment-option:hover {
    border-color: #e94560;
    background: #fff5f5;
}

.buddys-payment-option.selected {
    border-color: #e94560;
    background: rgba(233,69,96,0.05);
    box-shadow: 0 0 0 3px rgba(233,69,96,0.08);
}

.buddys-payment-option input[type="radio"] {
    display: none;
}

.buddys-payment-icon {
    font-size: 1.8rem;
}

.buddys-payment-details strong {
    display: block;
    font-size: 0.95rem;
    color: #1a1a2e;
}

.buddys-payment-details small {
    color: #888888;
    font-size: 0.8rem;
}

/* ---- UPI QR ---- */
#upi-section {
    text-align: center;
    margin-top: 20px;
}

#upi-qr-container {
    display: inline-block;
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

#upi-qr-code img {
    width: 200px;
    height: 200px;
    display: block;
}

/* ---- SUMMARY CARD ---- */
.buddys-summary-card {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e8e8e8;
}

.buddys-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
}

.buddys-summary-row:last-child {
    border-bottom: none;
}

.buddys-summary-label {
    color: #666666;
    font-size: 0.9rem;
}

.buddys-summary-value {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.9rem;
}

.buddys-summary-total-row {
    border-top: 2px solid #e94560;
    margin-top: 5px;
    padding-top: 15px;
}

.buddys-summary-total {
    font-size: 1.3rem !important;
    color: #e94560 !important;
}

/* ---- FORM ACTIONS ---- */
.buddys-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.buddys-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.buddys-btn-primary {
    background: #e94560;
    color: white;
    flex: 1;
    min-width: 200px;
}

.buddys-btn-primary:hover {
    background: #d63850;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233,69,96,0.3);
}

.buddys-btn-primary:disabled {
    background: #f0a0b0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #ffffff;
}

.buddys-btn-outline {
    background: transparent;
    color: #555555;
    border: 2px solid #dddddd;
}

.buddys-btn-outline:hover {
    border-color: #e94560;
    color: #e94560;
    background: #fff5f5;
}

/* ---- SUCCESS CARD ---- */
.buddys-success-card {
    text-align: center;
    padding: 40px 20px;
}

.buddys-success-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.buddys-success-card h2 {
    color: #27ae60;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.buddys-success-id {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #555555;
}

.buddys-success-id strong {
    color: #e94560;
    font-size: 1.3rem;
}

.buddys-success-note {
    color: #999999;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* ---- ALERT ---- */
.buddys-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.buddys-alert-error {
    background: rgba(231,76,60,0.08);
    color: #c0392b;
    border: 1px solid rgba(231,76,60,0.2);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .buddys-booking-container {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .buddys-booking-header h1 {
        font-size: 1.5rem;
    }
    
    .buddys-tables-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .buddys-steps {
        padding: 0;
    }
    
    .buddys-step-connector {
        width: 25px;
        margin: 0 5px 24px 5px;
    }
    
    .buddys-step-label {
        font-size: 0.7rem;
    }
    
    .buddys-step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .buddys-duration-buttons {
        flex-direction: column;
    }
    
    .buddys-duration-btn {
        width: 100%;
        text-align: center;
    }
    
    .buddys-form-actions {
        flex-direction: column;
    }
    
    .buddys-btn {
        width: 100%;
    }
    
    .buddys-payment-options {
        flex-direction: column;
    }
    
    .buddys-selected-table-info {
        flex-direction: column;
        text-align: center;
    }
}

/* ---- WORDPRESS THEME COMPATIBILITY ---- */
.buddys-booking-wrapper * {
    box-sizing: border-box;
}

.buddys-booking-container {
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 400px !important;
}
