/* ────────────────────────────────────────────────────────────
   Therapy Booking — Styles
   Adjust colors by changing the CSS variables at the top
──────────────────────────────────────────────────────────── */

:root {
    --tb-primary:   #4A90A4;
    --tb-primary-d: #3a7a8e;
    --tb-accent:    #f0f8fa;
    --tb-border:    #d1e4ea;
    --tb-text:      #2d3748;
    --tb-muted:     #718096;
    --tb-success:   #2ecc71;
    --tb-error-bg:  #fff5f5;
    --tb-error-bd:  #fc8181;
    --tb-radius:    10px;
}

/* Wrapper */
#tb-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--tb-text);
}

/* Headings */
.tb-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tb-primary);
    margin-bottom: 6px;
}
.tb-subtitle {
    color: var(--tb-muted);
    margin-bottom: 28px;
    font-size: 0.97rem;
}

/* Error alert */
.tb-alert {
    padding: 14px 18px;
    border-radius: var(--tb-radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.tb-alert-error {
    background: var(--tb-error-bg);
    border: 1px solid var(--tb-error-bd);
    color: #c53030;
}

/* Section labels */
.tb-section-label {
    grid-column: 1 / -1;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tb-primary);
    border-bottom: 2px solid var(--tb-border);
    padding-bottom: 6px;
    margin-top: 10px;
}

/* Form grid */
.tb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}
@media (max-width: 560px) {
    .tb-form-grid { grid-template-columns: 1fr; }
}

/* Fields */
.tb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tb-field-full { grid-column: 1 / -1; }

.tb-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tb-text);
}
.tb-field label .req { color: #e53e3e; }

.tb-field input,
.tb-field select,
.tb-field textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--tb-border);
    border-radius: var(--tb-radius);
    font-size: 0.95rem;
    color: var(--tb-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
    outline: none;
}
.tb-field input:focus,
.tb-field select:focus,
.tb-field textarea:focus {
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 3px rgba(74,144,164,0.15);
}
.tb-field textarea { resize: vertical; }

/* Fee box */
.tb-fee-box {
    background: var(--tb-accent);
    border: 1.5px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 14px 20px;
    margin: 22px 0 10px;
    font-size: 1rem;
    color: var(--tb-text);
}
.tb-fee-box strong {
    font-size: 1.3rem;
    color: var(--tb-primary);
}

/* Buttons */
.tb-btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: var(--tb-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 16px;
}
.tb-btn-primary {
    background: var(--tb-primary);
    color: #fff;
    width: 100%;
    letter-spacing: 0.02em;
}
.tb-btn-primary:hover:not(:disabled) {
    background: var(--tb-primary-d);
    transform: translateY(-1px);
}
.tb-btn-primary:disabled {
    background: #b2cdd6;
    cursor: not-allowed;
    transform: none;
}

/* ── Success screen ─────────────────────────────────────── */
#tb-step-2 {
    text-align: center;
    padding: 20px 0;
}
.tb-success-icon {
    width: 72px;
    height: 72px;
    background: var(--tb-success);
    color: #fff;
    border-radius: 50%;
    font-size: 2.2rem;
    line-height: 72px;
    margin: 0 auto 20px;
}

.tb-confirmation-box {
    background: var(--tb-accent);
    border: 1.5px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 20px;
    margin: 24px 0;
    text-align: left;
}
.tb-conf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--tb-border);
    font-size: 0.95rem;
}
.tb-conf-row:last-child { border-bottom: none; }
.tb-conf-row span { color: var(--tb-muted); }
.tb-conf-amount strong { color: var(--tb-primary); font-size: 1.1rem; }
