/* assets/css/consultation.css — v5 (split layout) */

/* ── Layout ───────────────────────────────────────────────── */
.tq-consul-wrap {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 100vh;
}

/* ── Aside (dark, sticky) ─────────────────────────────────── */
.tq-consul-aside {
    background: #232323;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 7rem 2.5rem 3rem;
    display: flex;
    flex-direction: column;
}
.tq-consul-aside::-webkit-scrollbar { display: none; }

.tq-consul-aside-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tq-consul-aside-label {
    font-size: 0.5875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.25);
    margin-bottom: 1.25rem;
}

.tq-consul-aside-h {
    font-size: clamp(1.875rem, 2.8vw, 2.75rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.06;
    margin-bottom: 1.25rem;
}
.tq-consul-aside-h em {
    font-style: normal;
    color: #d7fe7c;
}

.tq-consul-aside-sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.72;
    max-width: 32ch;
    margin-bottom: 2.25rem;
}

.tq-consul-aside-trust {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.tq-consul-aside-trust li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
}
.tq-consul-aside-trust li svg { flex-shrink: 0; color: #d7fe7c; }

.tq-consul-aside-div {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin-bottom: 2rem;
}

.tq-consul-aside-howlabel {
    font-size: 0.5875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.25);
    margin-bottom: 1rem;
}

.tq-consul-aside-steps {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 2.5rem;
}
.tq-consul-aside-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.tq-consul-aside-stepnum {
    width: 1.375rem;
    height: 1.375rem;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 900;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    margin-top: 0.0625rem;
}
.tq-consul-aside-step-text strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.125rem;
}
.tq-consul-aside-step-text span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    line-height: 1.5;
}

.tq-consul-aside-foot {
    margin-top: auto;
    padding-top: 2rem;
}
.tq-consul-aside-email {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255,255,255,0.25);
    text-decoration: none;
    transition: color 0.2s;
}
.tq-consul-aside-email:hover { color: rgba(255,255,255,0.6); }

/* ── Main (cream) ─────────────────────────────────────────── */
.tq-consul-main {
    background: #f6f5f2;
    padding: 7rem 4rem 6rem;
}
.tq-consul-main-inner { max-width: 580px; }

/* ── Stepper ──────────────────────────────────────────────── */
.tq-consul-card-head { margin-bottom: 2.5rem; }

.tq-consul-stepper {
    display: flex;
    align-items: center;
}

.tq-consul-step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tq-consul-step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid rgba(35,35,35,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: rgba(35,35,35,0.3);
    transition: all 0.2s;
    flex-shrink: 0;
}
.tq-consul-step-lbl {
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(35,35,35,0.3);
    transition: color 0.2s;
}
.tq-consul-step-line {
    flex: 1;
    height: 1.5px;
    background: rgba(35,35,35,0.1);
    margin: 0 0.75rem;
    transition: background 0.2s;
}

.tq-consul-step-item.is-active .tq-consul-step-num {
    border-color: #4d61f4;
    background: #4d61f4;
    color: #fff;
}
.tq-consul-step-item.is-active .tq-consul-step-lbl { color: #232323; }

.tq-consul-step-item.is-done .tq-consul-step-num {
    border-color: #232323;
    background: #232323;
    color: #d7fe7c;
}
.tq-consul-step-item.is-done .tq-consul-step-lbl { color: rgba(35,35,35,0.5); }
.tq-consul-step-line.is-done { background: #232323; }

/* ── Form panes ───────────────────────────────────────────── */
.tq-consul-pane { display: none; }
.tq-consul-pane.is-active { display: block; }

.tq-consul-pane-h {
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    font-weight: 900;
    color: #232323;
    letter-spacing: -0.03em;
    margin: 0 0 0.375rem;
}
.tq-consul-pane-sub {
    font-size: 0.875rem;
    color: rgba(35,35,35,0.45);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.tq-consul-section { margin-bottom: 1.875rem; }

.tq-consul-section-label {
    font-size: 0.5875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(35,35,35,0.32);
    margin: 0 0 0.75rem;
}

.tq-consul-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ── Fields — underline only ──────────────────────────────── */
.tq-consul-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.tq-consul-field label {
    font-size: 0.5875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(35,35,35,0.32);
}
.tq-consul-opt {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.6;
    font-size: 0.5625rem;
}

.tq-consul-field input,
.tq-consul-field textarea,
.tq-consul-field select {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(35,35,35,0.12);
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #232323;
    font-family: inherit;
    outline: none;
    resize: none;
    width: 100%;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.tq-consul-field input:focus,
.tq-consul-field textarea:focus,
.tq-consul-field select:focus { border-color: #4d61f4; }

.tq-consul-field.has-error input,
.tq-consul-field.has-error textarea,
.tq-consul-field.has-error select { border-color: rgba(200,50,50,0.5); }

.tq-consul-char {
    font-size: 0.6875rem;
    color: rgba(35,35,35,0.3);
    font-weight: 600;
    text-align: right;
    margin-top: 0.25rem;
}

/* Phone wrap */
.tq-consul-phone-wrap {
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid rgba(35,35,35,0.12);
    transition: border-color 0.2s;
}
.tq-consul-phone-wrap:focus-within { border-color: #4d61f4; }
.tq-consul-field.has-error .tq-consul-phone-wrap { border-color: rgba(200,50,50,0.5); }

/* Use parent selector to beat .tq-consul-field select specificity (0,1,1) */
.tq-consul-phone-wrap .tq-consul-phone-code {
    background: transparent;
    border: none;
    border-bottom: none;
    outline: none;
    font-size: 0.875rem;
    font-weight: 700;
    color: #232323;
    font-family: inherit;
    padding: 0.5rem 1.25rem 0.5rem 0;
    cursor: pointer;
    flex-shrink: 0;
    width: auto;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23232323' stroke-opacity='.35' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
}
.tq-consul-phone-wrap input[type="tel"] {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    border-bottom: none;
    outline: none;
    padding: 0.5rem 0 0.5rem 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #232323;
    font-family: inherit;
    width: 0;
}

/* Pill radios / checkboxes */
.tq-consul-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.tq-consul-pill input[type="radio"],
.tq-consul-pill input[type="checkbox"] { display: none; }
.tq-consul-pill span {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border: 1.5px solid rgba(35,35,35,0.1);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(35,35,35,0.45);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.tq-consul-pill:hover span { border-color: rgba(35,35,35,0.25); color: #232323; }
.tq-consul-pill input[type="radio"]:checked + span,
.tq-consul-pill input[type="checkbox"]:checked + span {
    background: #232323;
    border-color: #232323;
    color: #d7fe7c;
}
.tq-consul-pills.has-pill-error .tq-consul-pill span {
    border-color: rgba(200,50,50,0.3);
}

/* Time slots */
.tq-consul-slots-wrap { padding: 0.75rem 0; }
.tq-consul-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tq-consul-slot {
    padding: 0.4375rem 0.875rem;
    border: 1.5px solid rgba(35,35,35,0.1);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(35,35,35,0.55);
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}
.tq-consul-slot:hover { border-color: rgba(35,35,35,0.3); color: #232323; }
.tq-consul-slot.is-selected {
    background: #232323;
    border-color: #232323;
    color: #d7fe7c;
}
.tq-consul-slot-msg {
    font-size: 0.8125rem;
    color: rgba(35,35,35,0.4);
    font-style: italic;
}
.tq-consul-slots.has-pill-error .tq-consul-slot {
    border-color: rgba(200,50,50,0.3);
}

/* ── Form nav buttons ─────────────────────────────────────── */
.tq-consul-form-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.tq-consul-btn-next,
.tq-consul-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #d7fe7c;
    color: #232323;
    border: none;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.tq-consul-btn-next:hover,
.tq-consul-btn-submit:hover {
    background: #c8f563;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(215,254,124,0.32);
}
.tq-consul-btn-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tq-consul-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    color: rgba(35,35,35,0.45);
    border: 1.5px solid rgba(35,35,35,0.12);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.tq-consul-btn-ghost:hover {
    border-color: rgba(35,35,35,0.3);
    color: #232323;
}

/* ── Success state ────────────────────────────────────────── */
.tq-consul-success { display: none; padding: 3rem 0; }
.tq-consul-success.is-visible { display: block; }

.tq-consul-success-icon {
    width: 4rem;
    height: 4rem;
    background: #232323;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #d7fe7c;
}
.tq-consul-success-h {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    color: #232323;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
}
.tq-consul-success-sub {
    font-size: 0.9375rem;
    color: rgba(35,35,35,0.5);
    max-width: 36ch;
    margin: 0 auto 2rem;
    line-height: 1.65;
}
.tq-consul-success-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #232323;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(35,35,35,0.2);
    padding-bottom: 0.125rem;
    transition: border-color 0.2s, color 0.2s;
}
.tq-consul-success-back:hover { color: #4d61f4; border-color: #4d61f4; }

/* ── Flash notification ───────────────────────────────────── */
.tq-consul-flash {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    padding: 0.875rem 1.5rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    background: #232323;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
    white-space: nowrap;
    pointer-events: none;
}
.tq-consul-flash.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.tq-consul-flash--error { background: #c84040; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
    .tq-consul-wrap { grid-template-columns: 1fr; }
    .tq-consul-aside {
        position: static;
        height: auto;
        overflow-y: visible;
        padding: 6rem 1.75rem 2.5rem;
    }
    .tq-consul-aside-inner { justify-content: flex-start; }
    .tq-consul-aside-steps { display: none; }
    .tq-consul-main { padding: 2.75rem 1.75rem 5rem; }
}

@media (max-width: 560px) {
    .tq-consul-row { grid-template-columns: 1fr; gap: 1.25rem; }
    .tq-consul-step-lbl { display: none; }
    .tq-consul-step-line { margin: 0 0.5rem; }
    .tq-consul-aside { padding: 5.5rem 1.25rem 2rem; }
    .tq-consul-main { padding: 2rem 1.25rem 4rem; }
}
