/* ============================================
   booking.css — Form page styles
   ============================================ */

/* ---- Main Layout ---- */
.bk-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.25rem 4rem;
    min-height: calc(100vh - 68px);
}

/* ---- Login Card ---- */
.bk-login-card {
    background: rgba(255,255,255,0.97);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.09);
    border: 1px solid rgba(255,255,255,0.8);
    padding: 3rem 2rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    -webkit-animation: fadeUp 0.4s ease both;
    animation: fadeUp 0.4s ease both;
}

.bk-login-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(224,36,64,0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.bk-login-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0 0 0.5rem;
}

.bk-login-desc {
    font-size: 0.9rem;
    color: var(--color-ink-muted);
    margin: 0 0 1.75rem;
    line-height: 1.6;
}

.bk-login-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.bk-login-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #ef4444;
    font-weight: 500;
}

/* ---- Booking Wrapper ---- */
.bk-wrapper {
    width: 100%;
    max-width: 680px;
    animation: fadeUp 0.4s ease both;
}

/* ---- Steps Indicator ---- */
.bk-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.bk-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    flex: 1;
}

.bk-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.bk-step.active .bk-step-circle {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(224,36,64,0.35);
}

.bk-step.done .bk-step-circle {
    background: #10b981;
    color: white;
}

.bk-step.done .bk-step-circle::after {
    content: '✓';
    position: absolute;
    font-size: 0.9rem;
}

.bk-step.done .bk-step-circle span {
    display: none;
}

.bk-step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    transition: color 0.3s;
}

.bk-step.active .bk-step-label {
    color: var(--color-primary);
}

.bk-step.done .bk-step-label {
    color: #10b981;
}

.bk-step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.5rem;
    margin-bottom: 1.2rem;
    transition: background 0.3s;
}

/* ---- Step Panel ---- */
.bk-step-panel {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
}

.bk-step-panel.active {
    display: flex;
    animation: fadeUp 0.3s ease both;
}

/* ---- Form Panel ---- */
.bk-panel {
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid rgba(255,255,255,0.8);
    overflow: hidden;
}

.bk-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(135deg, rgba(224,36,64,0.03) 0%, transparent 100%);
}

.bk-panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(224,36,64,0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bk-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0 0 0.2rem;
}

.bk-panel-desc {
    font-size: 0.82rem;
    color: var(--color-ink-muted);
    margin: 0;
}

.bk-fields {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* ---- Field ---- */
.bk-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bk-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bk-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-ink);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bk-required {
    color: var(--color-primary);
    font-size: 0.8rem;
}

.bk-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bk-input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.bk-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem !important;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-ink);
    background: white;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.bk-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(224,36,64,0.12);
}

.bk-input-readonly {
    background: #f8fafc !important;
    color: #64748b !important;
    cursor: not-allowed;
}

.bk-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.bk-textarea {
    padding: 0.75rem 1rem;
    resize: vertical;
    min-height: 90px;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-ink);
    background: white;
    transition: all 0.2s ease;
    width: 100%;
}

.bk-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(224,36,64,0.12);
}

/* ---- Equipment Grid ---- */
.bk-eq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.65rem;
}

.bk-eq-item {
    cursor: pointer;
}

.bk-eq-item input[type="checkbox"] {
    display: none;
}

.bk-eq-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 0.5rem;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.bk-eq-item input:checked + .bk-eq-box {
    border-color: var(--color-primary);
    background: rgba(224,36,64,0.06);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(224,36,64,0.1);
}

.bk-eq-box:hover {
    border-color: rgba(224,36,64,0.3);
    background: white;
}

/* ---- Navigation Bar ---- */
.bk-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.bk-submit-btn {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
    gap: 0.5rem;
}

/* ---- Summary Card ---- */
.bk-summary {
    background: rgba(255,255,255,0.97);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1.5px solid rgba(224,36,64,0.12);
    overflow: hidden;
}

.bk-summary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: rgba(224,36,64,0.05);
    border-bottom: 1px solid rgba(224,36,64,0.1);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
}

.bk-summary-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bk-summary-hint {
    font-size: 0.85rem;
    color: #94a3b8;
}

.bk-sum-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.bk-sum-row span {
    color: var(--color-ink-muted);
    flex-shrink: 0;
}

.bk-sum-row strong {
    color: var(--color-ink);
    text-align: right;
    font-weight: 600;
}

/* ---- Status Message ---- */
.bk-status {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---- Animations ---- */
@-webkit-keyframes fadeUp {
    from { opacity: 0; -webkit-transform: translateY(16px); transform: translateY(16px); }
    to   { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; -webkit-transform: translateY(16px); transform: translateY(16px); }
    to   { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .bk-login-card,
    .bk-wrapper,
    .bk-step-panel.active {
        animation: none !important;
        -webkit-animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.bk-shake {
    animation: shake 0.4s ease;
    border-color: #ef4444 !important;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .bk-main {
        padding: 1rem 0.85rem 3rem;
    }

    .bk-field-row {
        grid-template-columns: 1fr;
    }

    .bk-steps {
        padding: 1rem;
    }

    .bk-step-label {
        font-size: 0.65rem;
    }

    .bk-step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .bk-eq-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .bk-panel-header {
        padding: 1rem;
    }

    .bk-fields {
        padding: 1rem;
    }

    .bk-login-card {
        padding: 2rem 1.25rem;
    }
}
