/* Minimal Clean Booking Styles */

:root {
    --primary: #0da7ac;
    --primary-light: #e8fafb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: var(--text-dark);
}

.booking-page {
    min-height: 100vh;
    padding: 40px 20px;
}

.booking-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.booking-header {
    margin-bottom: 40px;
    text-align: center;
}

.booking-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.booking-header p {
    font-size: 14px;
    color: var(--text-light);
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Form Section */
.form-section {
    background: var(--bg);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.form-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-section > p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 28px;
}

/* Form Group */
.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.optional {
    font-weight: 400;
    color: var(--text-light);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-light);
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.service-card {
    position: relative;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(13, 167, 172, 0.1);
}

.service-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.service-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.service-card.selected .service-name {
    color: var(--primary);
    font-weight: 700;
}

.service-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.service-time {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.service-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* Window Grid */
.window-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.window-card {
    position: relative;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.window-card:hover {
    border-color: var(--primary);
}

.window-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.window-card:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.window-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.window-time {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.window-slots {
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}

.window-slots.full {
    color: var(--error);
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Review Box */
.review-box {
    background: #fafbfc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

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

.review-row span {
    color: var(--text-light);
}

.review-row strong {
    font-weight: 600;
    color: var(--text-dark);
}

.review-row.highlight {
    background: var(--primary-light);
    padding: 12px 16px;
    margin: 12px -20px -20px -20px;
    border-radius: 0 0 8px 8px;
}

/* Payment Info */
.payment-info {
    background: #fafbfc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

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

.info-row span {
    color: var(--text-light);
}

.info-row strong {
    font-weight: 600;
}

.info-row.amount {
    background: var(--primary-light);
    padding: 12px 16px;
    margin: 12px -20px -20px -20px;
    border-radius: 0 0 8px 8px;
    font-size: 16px;
    font-weight: 600;
}

.info-row.amount strong {
    color: var(--primary);
    font-size: 18px;
}

/* File Input */
.file-input {
    position: relative;
    cursor: pointer;
}

.file-input:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-input input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.file-input.has-file {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.file-input span {
    display: block;
    font-size: 14px;
    color: var(--text-light);
}

/* Info Box */
.info-box {
    background: #ecf9ff;
    border-left: 4px solid #3b82f6;
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #064e78;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid;
    background: #caedee;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: var(--error);
}

.alert strong {
    font-weight: 600;
}

/* Confirmation */
.confirmation-badge {
    width: 60px;
    height: 60px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.conf-number {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Courier New', monospace;
}

.conf-steps {
    background: #fafbfc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.step {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    align-items: flex-start;
}

.step:last-child {
    padding-bottom: 0;
}

.step .num {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step span:last-child {
    padding-top: 4px;
    font-size: 14px;
    color: var(--text-dark);
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #099199;
    box-shadow: 0 4px 12px rgba(13,167,172,0.3);
}

.btn-secondary {
    background: var(--border);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

a.btn {
    text-decoration: none;
    display: inline-block;
}

/* Responsive */
@media (max-width: 640px) {
    .booking-page {
        padding: 20px 16px;
    }

    .form-section {
        padding: 20px;
    }

    .booking-header h1 {
        font-size: 24px;
    }

    .service-grid,
    .window-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
.time-slot-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}
.pref-option {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 8px;
}
.pref-option.checked {
    border-color: #14b8a6; /* match your teal accent */
    background: #f0fdfa;
    font-weight: 600;
}
.file-input {
    cursor: pointer;
}
.file-input input[type="file"] {
    display: none;
}
.file-input.has-file {
    border-color: #14b8a6;
    background: #f0fdfa;
}
.gcash-qr {
    background: #f9fafb;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
}

.gcash-qr h3 {
    margin: 0 0 15px;
    font-size: 18px;
}

.gcash-qr-image {
    width: 260px;
    height: 260px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gcash-qr-image:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.qr-hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* Fullscreen QR overlay */
.qr-fullscreen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-fullscreen.active {
    display: flex;
}

.qr-fullscreen img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

.qr-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 32px;
    line-height: 40px;
    cursor: pointer;
}

.qr-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.qr-error{
    color: #e70909;
}


.booking-page { margin-top: 20px; }
.booking-container { max-width: 700px; margin: 0 auto; }
.booking-header { text-align: center; margin-bottom: 30px; }
.progress-bar { width: 100%; height: 4px; background: #e5e7eb; border-radius: 2px; margin-bottom: 30px; }
.progress-fill { height: 100%; background: #0da7ac; transition: width 0.3s; }
.form-section { margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #e5e7eb; border-radius: 6px; }

.time-grid .time-slot {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.time-grid .time-slot:hover {
    border-color: #0da7ac;
}

.time-grid .time-slot:has(input[type="radio"]:checked) {
    border-color: #0da7ac !important;
    background: #e8fafb !important;
}

.service-grid, .time-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.service-card, .time-slot {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.service-card:hover, .time-slot:hover {
    border-color: #0da7ac;
}

.service-card:has(input:checked),
.time-slot:has(input:checked) {
    border-color: #0da7ac;
    background: #e8fafb;
}

.service-card input,
.time-slot input {
    display: none;
}

.service-name,
.time-name {
    font-weight: 600;
}
.service-price { color: #0da7ac; font-weight: 600; }
.review-box { background: #f9fafb; padding: 20px; border-radius: 8px; }
.review-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.review-row.highlight { background: #e8fafb; padding: 10px; border-radius: 4px; }
.payment-info { background: #f9fafb; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.info-row { display: flex; justify-content: space-between; padding: 10px 0; }
.file-input { border: 2px dashed #e5e7eb; padding: 20px; border-radius: 8px; text-align: center; cursor: pointer; }
.file-input input { display: none; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn { padding: 12px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }
.btn-primary { background: #0da7ac; color: white; }
.btn-primary:hover { background: #0a8692; }
.btn-secondary { background: #e5e7eb; color: #1f2937; }
.confirmation-badge { font-size: 60px; text-align: center; }
.conf-number { font-size: 28px; font-weight: bold; color: #0da7ac; text-align: center; }
.conf-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 20px 0; }
.step { text-align: center; padding: 15px; background: #f9fafb; border-radius: 8px; }
.step .num { display: inline-block; width: 40px; height: 40px; line-height: 40px; background: #0da7ac; color: white; border-radius: 50%; font-weight: 600; }
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.radio-group input {
    display: none;
}

.split-info {
    background: #fef3c7;
    color: #92400e;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 5px;
}
