/**
 * Halteverbot Frontend Styles
 * BEM naming with hv- prefix. Mobile-first.
 */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700&display=swap');

:root {
    --hv-primary: #0a2540;
    --hv-primary-light: #1a3a5c;
    --hv-accent: #F60E07;
    --hv-accent-hover: #03294B;
    --hv-border: #d1d9e0;
    --hv-border-focus: #107DA4;
    --hv-interactive: #107DA4;
    --hv-bg: #f7f9fc;
    --hv-bg-white: #ffffff;
    --hv-text: #070707;
    --hv-text-muted: #AAAAAA;
    --hv-text-light: #ffffff;
    --hv-success: #28a745;
    --hv-info: #17a2b8;
    --hv-warning: #ffc107;
    --hv-danger: #dc3545;
    --hv-radius: 8px;
    --hv-radius-sm: 4px;
    --hv-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --hv-shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.08);
    --hv-transition: 0.2s ease;
    --hv-font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Card (inline form wrapper) ===== */
.hv-card {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--hv-bg-white);
    border-radius: 16px;
    box-shadow: var(--hv-shadow-lg);
}

/* ===== Reset / Base ===== */
.hv-form-wrapper {
    font-family: var(--hv-font);
    color: var(--hv-text);
    max-width: 100%;
    margin: 0;
    padding: 0 48px 48px;
    line-height: 1.5;
}

.hv-form-wrapper *,
.hv-form-wrapper *::before,
.hv-form-wrapper *::after {
    box-sizing: border-box;
}

/* ===== Stepper ===== */
.hv-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--hv-border);
    flex-wrap: nowrap;
}

.hv-stepper__step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    font-size: 13px;
    color: var(--hv-text-muted);
    cursor: default;
    white-space: nowrap;
}

.hv-stepper__step--active {
    color: var(--hv-interactive);
    font-weight: 600;
}

.hv-stepper__step--completed {
    color: var(--hv-interactive);
}

.hv-stepper__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E9F4FA;
    color: #AAAAAA;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.hv-stepper__step--active .hv-stepper__number {
    background: var(--hv-interactive);
    color: var(--hv-text-light);
}

.hv-stepper__step--completed .hv-stepper__number {
    background: var(--hv-interactive);
    color: var(--hv-text-light);
}

.hv-stepper__separator {
    display: flex;
    align-items: center;
    padding: 0 4px;
    color: var(--hv-border);
    font-size: 16px;
    flex-shrink: 0;
}

/* ===== Step Container ===== */
.hv-step {
    display: none;
    padding: 32px 0;
}

.hv-step--active {
    display: block;
}

.hv-step__title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 32px;
    color: var(--hv-text);
}

/* ===== Form Layout ===== */
.hv-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hv-form-grid--single {
    grid-template-columns: 1fr;
}

.hv-form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hv-form-column .hv-form-group--grow {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hv-form-column .hv-form-group--grow .hv-input-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hv-form-column .hv-form-group--grow .hv-input-wrap__textarea {
    flex: 1;
    min-height: 160px;
}

.hv-form-group {
    position: relative;
}

.hv-form-group--full {
    grid-column: 1 / -1;
}

.hv-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hv-form-row--plz-city {
    grid-template-columns: 1fr 2fr;
}

/* ===== Floating Label Inputs ===== */
.hv-input-wrap {
    position: relative;
    border: 1px solid var(--hv-border);
    border-radius: var(--hv-radius);
    background: var(--hv-bg-white);
    transition: border-color var(--hv-transition);
    padding: 0;
}

.hv-input-wrap:focus-within {
    border-color: var(--hv-border-focus);
    box-shadow: 0 0 0 2px rgba(16, 125, 164, 0.15);
}

.hv-input-wrap--error {
    border-color: var(--hv-danger) !important;
    background: #fef8f8;
}

.hv-input-wrap--error:focus-within {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.hv-input-wrap__input,
.hv-input-wrap__select,
.hv-input-wrap__textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 22px 16px 8px;
    font-size: 15px;
    font-family: var(--hv-font);
    color: var(--hv-text);
    line-height: 1.4;
}

.hv-input-wrap__textarea {
    min-height: 120px;
    resize: vertical;
}

.hv-input-wrap__select {
    appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

.hv-input-wrap--select::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236c757d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    pointer-events: none;
}

.hv-input-wrap__label {
    position: absolute;
    left: 16px;
    top: 8px;
    transform: none;
    font-size: 11px;
    font-weight: 500;
    color: var(--hv-text-muted);
    pointer-events: none;
    transition: all var(--hv-transition);
    background: transparent;
}

.hv-input-wrap--error .hv-input-wrap__label {
    color: var(--hv-danger) !important;
}

/* Icons inside fields */
.hv-input-wrap__icon {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    color: var(--hv-text-muted);
    pointer-events: none;
}

.hv-input-wrap--has-icon .hv-input-wrap__input,
.hv-input-wrap--has-icon .hv-input-wrap__select,
.hv-input-wrap--has-icon .hv-input-wrap__label {
    padding-left: 44px;
}

.hv-input-wrap--has-icon .hv-input-wrap__label {
    left: 44px;
}

/* Phone input with country code */
.hv-phone-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--hv-border);
    border-radius: var(--hv-radius);
    overflow: hidden;
    transition: border-color var(--hv-transition);
}

.hv-phone-wrap:focus-within {
    border-color: var(--hv-border-focus);
    box-shadow: 0 0 0 2px rgba(16, 125, 164, 0.15);
}

.hv-phone-wrap__prefix {
    display: flex;
    align-items: center;
    width: 70px;
    flex-shrink: 0;
}

.hv-phone-wrap__prefix-input {
    width: 100%;
    border: none;
    outline: none;
    background: #f8f9fa;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--hv-font);
    color: var(--hv-text);
    text-align: center;
    padding: 0 8px;
    height: 100%;
    border-right: 1px solid var(--hv-border);
}

.hv-phone-wrap .hv-input-wrap {
    flex: 1;
    border: none;
    border-radius: 0;
}

.hv-phone-wrap .hv-input-wrap:focus-within {
    box-shadow: none;
}

/* Readonly fields (auto-filled by Google Places) */
.hv-input-wrap__input[readonly] {
    background: var(--hv-bg);
    cursor: default;
}

/* ===== Helper / Error Text ===== */
.hv-input-helper {
    font-size: 12px;
    color: var(--hv-text-muted);
    margin-top: 4px;
    padding-left: 2px;
}

.hv-input-error {
    font-size: 12px;
    color: var(--hv-danger);
    margin-top: 4px;
    padding-left: 2px;
    display: none;
}

.hv-input-wrap--error ~ .hv-input-error {
    display: block;
}

/* ===== Error Banner ===== */
.hv-error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--hv-danger);
    padding: 12px 16px;
    border-radius: var(--hv-radius);
    margin-bottom: 24px;
    font-size: 14px;
    display: none;
}

.hv-error-banner--visible {
    display: block;
}

/* ===== Checkbox ===== */
.hv-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 32px 0 16px 0;
    cursor: pointer;
}

.hv-checkbox__input {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid var(--hv-border);
    border-radius: 6px;
    background: var(--hv-bg-white);
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: all var(--hv-transition);
}

.hv-checkbox__input:checked {
    background: var(--hv-interactive);
    border-color: var(--hv-interactive);
}

.hv-checkbox__input:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.hv-checkbox__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--hv-text);
    cursor: pointer;
}

.hv-checkbox__label a {
    color: var(--hv-interactive);
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
}

.hv-checkbox__label a:hover {
    text-decoration: underline;
}

.hv-checkbox__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--hv-border);
    font-size: 11px;
    color: var(--hv-text-muted);
    cursor: help;
    flex-shrink: 0;
}

/* ===== Checkbox Error ===== */
.hv-checkbox--error .hv-checkbox__input {
    border-color: var(--hv-danger) !important;
}


.hv-checkbox-error {
    font-size: 12px;
    color: var(--hv-danger);
    margin-top: -8px;
    margin-bottom: 8px;
    padding-left: 34px;
}

/* ===== Custom Tooltips ===== */
.hv-tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.hv-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: -12px;
    width: 260px;
    background: #f3f4f6;
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--hv-text);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 100;
    white-space: normal;
    text-align: left;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hv-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 16px;
    border: 6px solid transparent;
    border-top-color: #e0e3e8;
}

.hv-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 17px;
    border: 5px solid transparent;
    border-top-color: #f3f4f6;
    z-index: 1;
}

.hv-tooltip__title {
    display: block;
    font-weight: 700;
    color: var(--hv-interactive);
    margin-bottom: 6px;
    font-size: 14px;
}

.hv-tooltip--visible {
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .hv-tooltip-trigger:hover .hv-tooltip {
        display: block;
    }
}

.hv-tooltip--left {
    right: auto;
    left: -12px;
}

.hv-tooltip--left::after {
    right: auto;
    left: 16px;
}

.hv-tooltip--left::before {
    right: auto;
    left: 17px;
}

/* ===== Radio Group ===== */
.hv-radio-group {
    display: flex;
    gap: 24px;
    padding: 8px 0;
}

.hv-radio-group__label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.hv-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.hv-radio__input {
    width: 20px;
    height: 20px;
    accent-color: var(--hv-interactive);
    cursor: pointer;
}

.hv-radio__label {
    font-size: 14px;
    cursor: pointer;
}

/* ===== Slider / Range ===== */
.hv-slider {
    padding: 20px 0;
}

.hv-slider__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.hv-slider__label {
    font-size: 14px;
    font-weight: 500;
}

.hv-slider__value {
    font-size: 15px;
    font-weight: 600;
    color: var(--hv-interactive);
}

.hv-slider__track {
    position: relative;
    padding: 0 10px;
}

.hv-slider__input {
    width: 100%;
    height: 4px;
    appearance: none;
    background: linear-gradient(to right, var(--hv-interactive) 0%, var(--hv-border) 0%);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.hv-slider__input::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--hv-interactive);
    cursor: pointer;
    border: 3px solid var(--hv-bg-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hv-slider__input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--hv-interactive);
    cursor: pointer;
    border: 3px solid var(--hv-bg-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hv-slider__ticks {
    display: flex;
    justify-content: space-between;
    padding: 6px 0 0;
    position: relative;
}

.hv-slider__tick {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hv-slider__tick::before {
    content: '';
    width: 2px;
    height: 8px;
    background: var(--hv-border);
    border-radius: 1px;
}

.hv-slider__tick-label {
    font-size: 11px;
    color: var(--hv-text-muted);
}

/* ===== File Upload ===== */
.hv-upload {
    margin: 20px 0;
}

.hv-upload__label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.hv-upload__inline {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--hv-border);
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
}

.hv-upload__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--hv-primary);
    color: var(--hv-text-light);
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--hv-transition);
    white-space: nowrap;
}

.hv-upload__button:hover {
    background: var(--hv-primary-light);
}

.hv-upload__filename {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: var(--hv-text-muted);
    padding: 12px 16px;
    background: var(--hv-bg-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.hv-upload__filename:empty {
    display: none;
}

.hv-upload__hidden {
    display: none;
}

/* ===== Second Zone Toggle ===== */
.hv-add-zone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    color: var(--hv-interactive);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--hv-font);
    overflow: visible;
    position: relative;
}

.hv-add-zone:hover {
    text-decoration: underline;
}

.hv-add-zone__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.hv-second-zone {
    display: none;
    border-top: 2px solid var(--hv-border);
    padding-top: 24px;
    margin-top: 16px;
}

.hv-second-zone--visible {
    display: block;
}

/* ===== Price Display ===== */
.hv-price-box {
    background: #E9F4FA;
    border: 1px solid var(--hv-border);
    border-radius: var(--hv-radius);
    padding: 20px 24px;
    margin-top: 40px;
}

.hv-price-box__row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.hv-price-box__left {
    flex-shrink: 0;
}

.hv-price-box__label {
    font-size: 12px;
    color: var(--hv-accent);
    font-weight: 600;
}

.hv-price-box__amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--hv-primary);
    margin-top: 4px;
}

.hv-price-box__right {
    flex: 1;
    min-width: 0;
}

.hv-price-box__package-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hv-price-box__description {
    font-size: 13px;
    color: var(--hv-text-muted);
    line-height: 1.5;
}

/* Simple price box (steps 2+3): label + amount only */
.hv-price-box--simple {
    padding: 16px 20px;
}

.hv-price-box--simple .hv-price-box__label {
    font-size: 11px;
    color: var(--hv-text-muted);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 2px;
}

.hv-price-box--simple .hv-price-box__amount {
    font-size: 24px;
    margin-top: 0;
}

/* ===== Duration Display ===== */
.hv-duration {
    padding: 14px 16px;
    border: 1px solid var(--hv-border);
    border-radius: var(--hv-radius);
    background: var(--hv-bg);
}

.hv-duration__label {
    font-size: 11px;
    color: var(--hv-text-muted);
    margin-bottom: 2px;
}

.hv-duration__value {
    font-size: 15px;
    font-weight: 600;
}

/* ===== Summary (Step 4) ===== */
.hv-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.hv-summary__section {
    padding: 0;
}

.hv-summary__title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 16px;
    color: var(--hv-text);
}

.hv-summary__field {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.hv-summary__label {
    color: var(--hv-text-muted);
    flex-shrink: 0;
    margin-right: 16px;
}

.hv-summary__value {
    text-align: right;
    font-weight: 500;
    word-break: break-word;
}

.hv-text-muted {
    color: var(--hv-text-muted);
    font-size: 14px;
}

/* ===== Buttons ===== */
.hv-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 0;
    margin-top: 32px;
}

.hv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--hv-transition);
    border: none;
    font-family: var(--hv-font);
    text-decoration: none;
    line-height: 1;
}

.hv-btn--primary {
    background: var(--hv-accent);
    color: var(--hv-text-light);
}

.hv-btn--primary:hover {
    background: var(--hv-accent-hover);
}

.hv-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hv-btn--secondary {
    background: none;
    color: var(--hv-text);
    padding: 14px 8px;
    font-weight: 600;
}

.hv-btn--secondary:hover {
    color: var(--hv-primary);
}

.hv-btn--loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hv-spin 0.6s linear infinite;
}

@keyframes hv-spin {
    to { transform: rotate(360deg); }
}

/* ===== Placeholder Color ===== */
.hv-form-wrapper ::placeholder {
    color: var(--hv-text-muted);
    font-weight: 400;
    opacity: 1;
}

/* ===== Date Input Styling ===== */
.hv-input-wrap__input[type="date"],
.hv-input-wrap__input[type="time"] {
    font-family: var(--hv-font);
    color-scheme: light;
}

.hv-input-wrap__input[type="date"]::-webkit-calendar-picker-indicator,
.hv-input-wrap__input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.5;
    filter: none;
}

.hv-input-wrap__input[type="date"]::-webkit-calendar-picker-indicator:hover,
.hv-input-wrap__input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Empty date/time fields should look like placeholders */
.hv-input-wrap__input[type="date"].hv-input--empty,
.hv-input-wrap__input[type="time"].hv-input--empty,
.hv-input-wrap__select.hv-input--empty {
    color: var(--hv-text-muted);
}

/* ===== Custom Date & Time Picker =====
   Alle Regeln mit !important, damit Theme-Styles (insbesondere für button)
   das Picker-Design nicht verfälschen — gleiche Strategie wie im .hv-card-Block. */
.hv-form-wrapper .hv-picker-field {
    cursor: pointer !important;
    caret-color: transparent !important;
}

.hv-input-wrap--picker-open {
    z-index: 10000 !important;
    border-color: var(--hv-border-focus);
    box-shadow: 0 0 0 2px rgba(16, 125, 164, 0.15);
}

/* Portal: nimmt Popups im Sheet-Modus auf, damit position:fixed nicht von
   transformierten Theme-Containern eingefangen wird. */
.hv-picker-portal {
    margin: 0 !important;
    padding: 0 !important;
}

.hv-form-wrapper .hv-picker {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    width: 322px;
    max-width: 100%;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid var(--hv-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(10, 37, 64, 0.16) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.hv-form-wrapper .hv-picker--time {
    width: 100%;
}

.hv-form-wrapper .hv-picker--open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Harter Reset für alle Buttons im Picker (Tage, Navigation, Zeit-Optionen) */
.hv-form-wrapper .hv-picker button {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    text-decoration: none !important;
    letter-spacing: normal !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    min-height: 0 !important;
    font-family: var(--hv-font) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: var(--hv-text) !important;
    cursor: pointer !important;
    outline: none !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.hv-form-wrapper .hv-picker button:focus-visible {
    box-shadow: 0 0 0 2px rgba(16, 125, 164, 0.35) !important;
}

.hv-form-wrapper .hv-picker__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
    padding: 14px 14px 6px !important;
}

.hv-form-wrapper .hv-picker__title {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: var(--hv-text) !important;
}

.hv-form-wrapper .hv-picker .hv-picker__nav {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
}

.hv-form-wrapper .hv-picker .hv-picker__nav svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
}

.hv-form-wrapper .hv-picker .hv-picker__nav:hover:not(:disabled) {
    background: var(--hv-bg) !important;
}

.hv-form-wrapper .hv-picker .hv-picker__nav:disabled {
    opacity: 0.3 !important;
    cursor: default !important;
}

.hv-form-wrapper .hv-picker__weekdays,
.hv-form-wrapper .hv-picker__grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 14px !important;
}

.hv-form-wrapper .hv-picker__grid {
    padding-bottom: 14px !important;
}

.hv-form-wrapper .hv-picker__weekday {
    display: block !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--hv-text-muted) !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.hv-form-wrapper .hv-picker .hv-picker__day {
    height: 38px !important;
    width: 100% !important;
    border-radius: 50% !important;
    font-size: 14px !important;
}

.hv-form-wrapper .hv-picker .hv-picker__day:hover:not(:disabled) {
    background: rgba(16, 125, 164, 0.1) !important;
}

.hv-form-wrapper .hv-picker .hv-picker__day--today {
    box-shadow: inset 0 0 0 1px var(--hv-border-focus) !important;
}

.hv-form-wrapper .hv-picker .hv-picker__day--selected,
.hv-form-wrapper .hv-picker .hv-picker__day--selected:hover:not(:disabled) {
    background: var(--hv-interactive) !important;
    color: var(--hv-text-light) !important;
    font-weight: 600 !important;
}

.hv-form-wrapper .hv-picker .hv-picker__day:disabled {
    color: var(--hv-text-muted) !important;
    opacity: 0.4 !important;
    cursor: default !important;
}

.hv-form-wrapper .hv-picker__options {
    position: relative !important;
    max-height: 236px;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    margin: 0 !important;
    padding: 6px !important;
}

.hv-form-wrapper .hv-picker .hv-picker__option {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}

.hv-form-wrapper .hv-picker .hv-picker__option:hover:not(:disabled) {
    background: rgba(16, 125, 164, 0.1) !important;
}

.hv-form-wrapper .hv-picker .hv-picker__option--selected,
.hv-form-wrapper .hv-picker .hv-picker__option--selected:hover:not(:disabled) {
    background: var(--hv-interactive) !important;
    color: var(--hv-text-light) !important;
    font-weight: 600 !important;
}

.hv-form-wrapper .hv-picker .hv-picker__option:disabled {
    color: var(--hv-text-muted) !important;
    opacity: 0.4 !important;
    cursor: default !important;
}

/* Mobil: Picker als Bottom-Sheet mit abgedunkeltem Hintergrund */
.hv-picker-backdrop {
    display: none;
}

@media (max-width: 640px) {
    .hv-picker-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: rgba(7, 7, 7, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s;
    }

    .hv-picker-backdrop--visible {
        opacity: 1;
        visibility: visible;
    }

    .hv-form-wrapper .hv-picker {
        position: fixed;
        top: auto;
        left: 16px;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: auto;
        max-width: none;
        max-height: 75vh;
        max-height: 75svh;
        overflow-y: auto;
        z-index: 9999;
        border-radius: 16px !important;
        transform: translateY(16px);
    }

    .hv-form-wrapper .hv-picker--open {
        transform: none;
    }

    .hv-form-wrapper .hv-picker .hv-picker__day {
        height: 42px !important;
        font-size: 15px !important;
    }

    .hv-form-wrapper .hv-picker .hv-picker__option {
        padding: 12px 16px !important;
        font-size: 15px !important;
    }

    .hv-form-wrapper .hv-picker__options {
        max-height: 60vh;
    }

    /* 16px verhindert den automatischen Seiten-Zoom von iOS Safari beim Fokussieren */
    .hv-form-wrapper .hv-input-wrap .hv-picker-field {
        font-size: 16px !important;
    }
}

/* ===== Success Page ===== */
.hv-success {
    text-align: center;
    padding: 60px 24px;
    max-width: 700px;
    margin: 0 auto;
}

.hv-success__icon {
    margin-bottom: 24px;
    color: var(--hv-primary);
}

.hv-success__title {
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--hv-text);
}

.hv-success__title.hv-step__title {
    font-size: 24px;
}

.hv-success__text {
    font-size: 15px;
    color: var(--hv-text-muted);
    line-height: 1.7;
    margin: 0 0 16px;
}

.hv-success__text:last-of-type {
    margin-bottom: 32px;
}

/* ===== Status Page ===== */
.hv-status-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 16px;
}

.hv-status-page__header {
    text-align: center;
    margin-bottom: 32px;
}

.hv-status-page__ref {
    font-size: 13px;
    color: var(--hv-text-muted);
    margin-bottom: 4px;
}

.hv-status-page__status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    background: var(--hv-primary);
    color: var(--hv-text-light);
    margin-top: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hv-card {
        border-radius: 12px;
    }

    .hv-form-wrapper {
        padding: 0 20px 32px;
    }

    .hv-form-grid {
        grid-template-columns: 1fr;
    }

    .hv-form-row {
        grid-template-columns: 1fr;
    }

    .hv-form-row--plz-city {
        grid-template-columns: 1fr 1fr;
    }

    .hv-summary {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hv-stepper {
        padding: 16px 0;
        gap: 2px;
    }

    .hv-stepper__step {
        padding: 6px 4px;
        font-size: 11px;
    }

    .hv-stepper__step span:not(.hv-stepper__number) {
        display: none;
    }

    .hv-stepper__separator {
        padding: 0 2px;
    }

    .hv-step__title {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .hv-price-box__row {
        flex-direction: column;
        gap: 12px;
    }

    .hv-price-box__amount {
        font-size: 24px;
    }

    .hv-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .hv-btn {
        width: 100%;
        justify-content: center;
    }

    .hv-btn--secondary {
        width: auto;
    }
}

@media (max-width: 480px) {
    .hv-form-row--plz-city {
        grid-template-columns: 1fr;
    }

    .hv-form-wrapper {
        padding: 0 16px 24px;
    }
}

/* ===== Theme Override Protection =====
 * Higher specificity rules to prevent Elementor/theme CSS from
 * overriding plugin styles. Scoped under .hv-card for specificity.
 */
.hv-card .hv-form-wrapper {
    font-family: var(--hv-font) !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: var(--hv-text) !important;
}

.hv-card .hv-upload__button {
    background: var(--hv-primary) !important;
    color: var(--hv-text-light) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.hv-card .hv-upload__button:hover {
    background: var(--hv-primary-light) !important;
}

.hv-card .hv-btn {
    border: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
}

.hv-card .hv-btn--primary {
    background: var(--hv-accent) !important;
    color: var(--hv-text-light) !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
}

.hv-card .hv-btn--primary:hover {
    background: var(--hv-accent-hover) !important;
}

.hv-card .hv-btn--secondary {
    background: none !important;
    color: var(--hv-text) !important;
    box-shadow: none !important;
}

.hv-card .hv-btn--secondary:hover {
    color: var(--hv-primary) !important;
    background: none !important;
}

.hv-card .hv-checkbox__label a {
    color: var(--hv-interactive) !important;
    text-decoration: none !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.hv-card .hv-checkbox__label a:hover {
    text-decoration: underline !important;
}

.hv-card .hv-add-zone {
    background: none !important;
    border: none !important;
    color: var(--hv-interactive) !important;
    padding: 12px 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 14px !important;
    overflow: visible !important;
}

.hv-card .hv-checkbox__input {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    margin: 0 !important;
    border: 2px solid var(--hv-border) !important;
    border-radius: 6px !important;
    background: var(--hv-bg-white) !important;
    cursor: pointer !important;
    position: relative !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.hv-card .hv-checkbox__input:checked {
    background: var(--hv-interactive) !important;
    border-color: var(--hv-interactive) !important;
}

.hv-card .hv-checkbox__input:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 6px !important;
    top: 2px !important;
    width: 6px !important;
    height: 11px !important;
    border: solid #fff !important;
    border-width: 0 2.5px 2.5px 0 !important;
    transform: rotate(45deg) !important;
    display: block !important;
}

.hv-card .hv-input-wrap__input,
.hv-card .hv-input-wrap__select,
.hv-card .hv-input-wrap__textarea {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 22px 16px 8px !important;
    font-size: 15px !important;
    font-family: var(--hv-font) !important;
    color: var(--hv-text) !important;
    border-radius: 0 !important;
    min-height: auto !important;
}

.hv-card .hv-input-wrap__textarea {
    min-height: 120px !important;
}

.hv-card .hv-input-wrap__select {
    padding-right: 40px !important;
}

.hv-card .hv-input-wrap--has-icon .hv-input-wrap__input,
.hv-card .hv-input-wrap--has-icon .hv-input-wrap__select {
    padding-left: 44px !important;
}

.hv-card .hv-input-wrap--has-icon .hv-input-wrap__label {
    left: 44px !important;
}

.hv-card .hv-input-wrap__icon {
    position: absolute !important;
    left: 14px !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    color: var(--hv-text-muted) !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    z-index: 1 !important;
}

.hv-card .hv-input-wrap {
    border: 1px solid var(--hv-border) !important;
    border-radius: var(--hv-radius) !important;
    background: var(--hv-bg-white) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hv-card .hv-phone-wrap .hv-input-wrap {
    border: none !important;
    border-radius: 0 !important;
}

.hv-card .hv-phone-wrap__prefix-input {
    border: none !important;
    outline: none !important;
    background: #f8f9fa !important;
    font-family: var(--hv-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--hv-text) !important;
    border-right: 1px solid var(--hv-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 8px !important;
}

.hv-card .hv-input-wrap__label {
    position: absolute !important;
    left: 16px !important;
    top: 8px !important;
    transform: none !important;
    pointer-events: none !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--hv-text-muted) !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}

.hv-card .hv-stepper {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hv-card .hv-step__title {
    font-size: 24px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: var(--hv-text) !important;
}

.hv-card h2.hv-step__title,
.hv-card h3.hv-summary__title {
    font-family: var(--hv-font) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.hv-card .hv-summary__title {
    font-size: 14px !important;
    font-weight: 600 !important;
}

.hv-card .hv-radio__input {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    accent-color: var(--hv-interactive) !important;
    margin: 0 !important;
}

.hv-card .hv-slider__input {
    appearance: none !important;
    -webkit-appearance: none !important;
    height: 4px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hv-card .hv-tooltip {
    font-family: var(--hv-font) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: var(--hv-text) !important;
    white-space: normal !important;
    text-align: left !important;
}
