
.quote-container {
    --quote-red: #b90000;
    --quote-text: #191d23;
    --quote-muted: #707478;
    --quote-border: #dedede;

    width: 100%;
    max-width: 840px;
    margin: 40px auto;
    padding: 42px 38px 38px;
    background: #fff;
    border: 1px solid var(--quote-border);
    border-radius: 25px;
    box-shadow: 0 25px 35px -18px rgba(0, 0, 0, 0.35);
    color: var(--quote-text);
    font-family: inherit;
    box-sizing: border-box;
}

.quote-container *,
.quote-container *::before,
.quote-container *::after {
    box-sizing: border-box;
}

/* Fejléc */

.quote-header {
    margin-bottom: 34px;
}

.quote-eyebrow {
    margin-bottom: 13px;
    color: var(--quote-red);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.quote-header h1 {
    max-width: 670px;
    margin: 0 0 14px;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--quote-text);
}

.quote-header p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--quote-muted);
}

/* Progress bar */

.quote-progress {
    margin-bottom: 34px;
}

.quote-progress-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 11px;
}

.quote-step-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.quote-step-description {
    font-size: 12px;
    color: var(--quote-muted);
}

.quote-step-counter {
    color: var(--quote-red);
    font-size: 14px;
    font-weight: 600;
}

.quote-progress-track {
    width: 100%;
    height: 6px;
    background: #eeeeee;
    border-radius: 7px;
    overflow: hidden;
}

.quote-progress-fill {
    height: 100%;
    background: var(--quote-red);
    border-radius: 7px;
    transition: width 0.3s ease;
}

/* Lépésjelzők */

.quote-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin-top: 15px;
}

.quote-step {
    padding: 8px 6px;
    border: 1px solid var(--quote-border);
    border-radius: 21px;
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
    color: var(--quote-muted);
}

.quote-step.active {
    border-color: var(--quote-red);
    background: #f5e6e6;
    color: var(--quote-red);
}

.quote-step.completed {
    border-color: var(--quote-red);
    color: var(--quote-red);
}

/* Form mezők */

.quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 22px;
}

.quote-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quote-field label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.quote-field input,
.quote-field select,
.quote-field textarea {
    width: 100%;
    min-width: 0;
    height: 35px;
    padding: 7px 11px;
    border: 1px solid var(--quote-border);
    border-radius: 11px;
    background: #fff;
    color: var(--quote-text);
    font-family: inherit;
    font-size: 14px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
    border-color: var(--quote-red);
    box-shadow: 0 0 0 2px rgba(185, 0, 0, 0.08);
}

.quote-field textarea {
    height: auto;
    min-height: 85px;
    resize: vertical;
}

.quote-field-full {
    grid-column: 1 / -1;
}

/* Navigációs gombok */

.quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 10px 30px;
    border: 1px solid var(--quote-red);
    border-radius: 12px;
    background: var(--quote-red);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.2s;
}

.quote-btn:hover {
    background: #990000;
}

.quote-btn span {
    font-size: 17px;
    line-height: 1;
}

.quote-btn-back {
    background: #fff;
    color: var(--quote-red);
}

.quote-btn-back:hover {
    background: #f5e6e6;
}

/* Lábléc */

.quote-footer {
    margin-top: 22px;
    color: var(--quote-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* Tablet */

@media (max-width: 900px) {

    .quote-container {
        margin: 25px auto;
        padding: 30px 24px;
        border-radius: 20px;
    }

    .quote-header h1 {
        font-size: 30px;
    }

    .quote-header p {
        font-size: 15px;
    }

}

/* Mobil */

@media (max-width: 640px) {

    .quote-container {
        margin: 15px auto;
        padding: 24px 16px;
        border-radius: 16px;
    }

    .quote-header {
        margin-bottom: 24px;
    }

    .quote-header h1 {
        font-size: 25px;
        letter-spacing: -0.5px;
    }

    .quote-header p {
        font-size: 14px;
    }

    .quote-progress {
        margin-bottom: 24px;
    }

    .quote-steps {
        gap: 4px;
    }

    .quote-step {
        padding: 7px 2px;
        font-size: 10px;
        overflow-wrap: anywhere;
    }

    .quote-step.completed {
        border-color: var(--quote-border);
        background: #f5f6f7;
        color: var(--quote-muted);
    }

    .quote-grid {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .quote-field label {
        font-size: 14px;
    }

    .quote-field input,
    .quote-field select,
    .quote-field textarea {
        height: 40px;
        font-size: 16px;
    }

    .quote-field textarea {
        height: auto;
    }

    .quote-btn {
        flex: 1;
        min-height: 42px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .quote-footer {
        font-size: 11px;
    }
}


.quote-btn-back {
    background: #fafbfc;
    border-color: var(--quote-border);
    color: var(--quote-text);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
}

.quote-btn-back:hover {
    background: #eeeeee;
}



/* Vizsgálati csoportok */

.quote-section-title {
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.quote-check-group {
    margin-bottom: 20px;
}

.quote-check-group:last-of-type {
    margin-bottom: 0;
}

.quote-group-title {
    margin-bottom: 9px;
    color: var(--quote-red);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

.quote-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 12px;
}

/* Egyedi checkbox */

.quote-checkbox {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--quote-text);
    cursor: pointer;
}

.quote-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    padding: 0;
    border: 1px solid var(--quote-red);
    border-radius: 50%;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.quote-checkbox input[type="checkbox"]:checked {
    background: var(--quote-red);
}

.quote-checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.quote-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--quote-red);
    outline-offset: 3px;
}

.quote-checkbox span {
    flex: 1;
    min-width: 0;
}

/* Mobil */

@media (max-width: 640px) {

    .quote-check-grid {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .quote-check-group {
        margin-bottom: 24px;
    }

    .quote-checkbox {
        min-height: 24px;
    }

    .quote-checkbox input[type="checkbox"] {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
    }

    .quote-checkbox input[type="checkbox"]:checked::after {
        top: 3px;
        left: 6px;
    }

}


