/* Unified inquiry wizard (/anfrage) — uses the existing MihalTEC
   design tokens (CSS variables) so light and dark mode both work. */

.inquiry-page-content {
    padding-top: 100px;
    padding-bottom: 4rem;
    background: var(--light-bg);
    min-height: calc(100vh - 200px);
}

.inquiry-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1rem;
}

.inquiry-card {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius-lg, 14px);
}

/* Progress */
.inquiry-progress {
    margin-bottom: 1.25rem;
}

.inquiry-progress-text {
    font-size: 0.875rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0.35rem;
}

.inquiry-progress-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--border-color, rgba(0, 0, 0, 0.1));
    overflow: hidden;
}

.inquiry-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--primary-color);
    transition: width 0.25s ease;
}

/* Steps: visible by default (no-JS fallback shows the linear form);
   JS adds .inquiry-wizard-active and toggles .active per step. */
.inquiry-step {
    border: 0;
    padding: 0;
    margin: 0 0 2rem 0;
}

.inquiry-wizard-active .inquiry-step {
    display: none;
    margin-bottom: 0;
}

.inquiry-wizard-active .inquiry-step.active {
    display: block;
    animation: inquiry-step-fade-in 0.35s ease;
}

@keyframes inquiry-step-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .inquiry-wizard-active .inquiry-step.active {
        animation: none;
    }
}

/* Error messages are toggled via the `hidden` attribute in JS. Bootstrap's
   `.d-block` utility uses `!important`, which otherwise wins over the
   browser's default `[hidden]` rule and keeps the text visible. */
.inquiry-error[hidden] {
    display: none !important;
}

.inquiry-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    float: none;
    width: 100%;
}

.inquiry-help {
    color: var(--text-muted, #6c757d);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.inquiry-subsection-title {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Option cards (radio/checkbox) */
.inquiry-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

@media (min-width: 576px) {
    .inquiry-options {
        grid-template-columns: 1fr 1fr;
    }

    .inquiry-options-large {
        grid-template-columns: 1fr;
    }
}

.inquiry-option-card {
    position: relative;
    height: 100%;
}

.inquiry-option-card input {
    position: absolute;
    top: 1rem;
    left: 1rem;
    margin: 0;
}

.inquiry-option-card label {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 5rem;
    box-sizing: border-box;
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.15));
    border-radius: var(--border-radius, 10px);
    background: var(--white, #fff);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.inquiry-options-large .inquiry-option-card label {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 6rem;
}

.inquiry-option-card input:hover+label,
.inquiry-option-card label:hover {
    border-color: var(--primary-color);
}

.inquiry-option-card input:focus-visible+label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.inquiry-option-card input:checked+label {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.inquiry-option-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.inquiry-option-title i {
    margin-right: 0.4rem;
    color: var(--primary-color);
}

.inquiry-option-help {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted, #6c757d);
}

/* Live character counter shown under textareas/inputs with a maxlength */
.inquiry-char-counter {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    text-align: right;
    margin-top: 0.25rem;
}

/* Honeypot: visually removed, still in the DOM for bots */
.inquiry-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Wizard nav */
.inquiry-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.inquiry-nav #btn-next,
.inquiry-nav #btn-submit {
    margin-left: auto;
}

/* Calendar grid (mirrors the previous booking design) */
.calendar-time-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .calendar-time-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.calendar-grid {
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-radius: var(--border-radius, 10px);
    overflow: hidden;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--light-bg, #f8f9fa);
}

.calendar-day-header {
    text-align: center;
    padding: 0.4rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #6c757d);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    cursor: default;
    border-radius: 6px;
    margin: 2px;
}

.calendar-day.other-month,
.calendar-day.past-date,
.calendar-day.unavailable {
    color: var(--text-muted, #adb5bd);
    opacity: 0.45;
}

.calendar-day.has-slots {
    cursor: pointer;
    background: rgba(25, 135, 84, 0.12);
    font-weight: 600;
}

.calendar-day.has-slots:hover {
    background: rgba(25, 135, 84, 0.25);
}

.calendar-day.selected {
    background-color: #0a4f1a !important;
    color: #ffffff !important;
}

.time-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    max-height: 320px;
    overflow-y: auto;
}

.time-slot {
    text-align: center;
    padding: 0.45rem 0.25rem;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.15));
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
}

.time-slot:hover {
    border-color: var(--primary-color);
}

.time-slot.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.time-slot.selected {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Summary */
.inquiry-summary-section {
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-radius: var(--border-radius, 10px);
    padding: 1rem;
    margin-bottom: 1rem;
}

.inquiry-summary-section h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.inquiry-summary-section dl {
    margin: 0;
}

.inquiry-summary-section dt {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    font-weight: 600;
}

.inquiry-summary-section dd {
    margin-bottom: 0.6rem;
    white-space: pre-wrap;
}

/* Dark mode adjustments (site toggles [data-bs-theme="dark"] /
   .dark-mode via existing theme script; variables already switch) */
[data-theme="dark"] .inquiry-option-card label,
[data-bs-theme="dark"] .inquiry-option-card label {
    background: var(--card-bg, var(--white, #1e1e1e));
}