/* ==================================================
   ESTIMATE FORM CSS
   ==================================================
   Zweck:
   Styling für die Aufwand-Analyse im Online-Check-Stil.

   Datei:
   /assets/css/estimate-form.css
================================================== */

.card-estimate-form {
    color: #203665;
}

.estimate-form {
    width: 100%;
}

.estimate-block {
    margin-bottom: 32px;
    padding: 26px;
    border: 1px solid rgba(32, 54, 101, 0.32);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.82);
}

.estimate-block:last-child {
    margin-bottom: 0;
}

.estimate-block h3,
.estimate-result h3 {
    margin: 0 0 14px;
    color: #203665;
    font-size: 1.55rem;
    line-height: 1.25;
    font-weight: 700;
    text-align: left;
    text-shadow: none;
}

.estimate-block p {
    margin: 0 0 20px;
    color: #203665;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label,
.checkbox-grid label,
.privacy-check {
    color: #203665;
    font-size: 0.98rem;
    line-height: 1.4;
    font-weight: 700;
    text-align: left;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(32, 54, 101, 0.35);
    border-radius: 5px;
    padding: 11px 12px;
    background: #ffffff;
    color: #203665;
    font-family: var(--font-main);
    font-size: 0.98rem;
    line-height: 1.35;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #203665;
    box-shadow: 0 0 0 3px rgba(32, 54, 101, 0.16);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

.checkbox-grid label,
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(32, 54, 101, 0.22);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.checkbox-grid input,
.privacy-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #203665;
    flex: 0 0 auto;
}

.estimate-result {
    margin-bottom: 32px;
    padding: 26px;
    border: 2px solid #203665;
    border-radius: 5px;
    background: #203665;
    color: #ffffff;
}

.estimate-result h3 {
    color: #ffffff;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.result-grid div {
    padding: 18px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
}

.result-grid span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.3;
}

.result-grid strong {
    display: block;
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 700;
}

.result-note {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: left;
}

.privacy-check {
    margin-top: 18px;
}

.card-estimate-form .content-button {
    border: 1px solid #203665;
    background: #203665;
    color: #ffffff;
}

.card-estimate-form .content-button:hover {
    border-color: #1F8F3A;
    background: #1F8F3A;
    color: #ffffff;
}

@media (max-width: 900px) {
    .form-grid-2,
    .form-grid-3,
    .checkbox-grid,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .estimate-block,
    .estimate-result {
        padding: 20px;
    }

    .estimate-block h3,
    .estimate-result h3 {
        font-size: 1.35rem;
    }
}
/* ==================================================
   ESTIMATE FORM: Schrittanzeige erzwingen
================================================== */

/* ==================================================
   ESTIMATE FORM: Mehrstufiger Online-Check
================================================== */

.estimate-form .estimate-step {
    display: none !important;
}

.estimate-form .estimate-step.is-active {
    display: block !important;
}


/* ==================================================
   ESTIMATE FORM: Fortschrittsanzeige
================================================== */

.estimate-progress {
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid rgba(32, 54, 101, 0.25);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.78);
}

.estimate-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(32, 54, 101, 0.18);
}

.estimate-progress-fill {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: #203665;
    transition: width 0.25s ease;
}

.estimate-progress-text {
    display: block;
    margin-top: 10px;
    color: #203665;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
}


/* ==================================================
   ESTIMATE FORM: Navigation Buttons
================================================== */

.estimate-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.estimate-navigation-right {
    justify-content: flex-end;
}

.estimate-next,
.estimate-prev,
.estimate-navigation .content-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 12px 24px;
    border: 1px solid #203665;
    border-radius: 5px;
    background: #203665;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.estimate-prev {
    background: transparent;
    color: #203665;
}

.estimate-next:hover,
.estimate-prev:hover,
.estimate-navigation .content-button:hover {
    border-color: #1F8F3A;
    background: #1F8F3A;
    color: #ffffff;
}
/* ==================================================
   ESTIMATE FORM: Paketwahl
================================================== */

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.package-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 20px;
    border: 1px solid rgba(32, 54, 101, 0.28);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.78);
    color: #203665;
    cursor: pointer;
}

.package-card input {
    width: 20px;
    height: 20px;
    accent-color: #203665;
}

.package-title {
    display: block;
    color: #203665;
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 700;
}

.package-text,
.package-list {
    display: block;
    color: #203665;
    font-size: 0.95rem;
    line-height: 1.5;
}

.package-list {
    font-weight: 700;
}

.package-card:has(input:checked) {
    border-color: #203665;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(32, 54, 101, 0.14);
}


/* ==================================================
   ESTIMATE FORM: Leistungsgruppen
================================================== */

.service-group {
    margin-bottom: 26px;
}

.service-group:last-of-type {
    margin-bottom: 24px;
}

.service-group h4 {
    margin: 0 0 14px;
    color: #203665;
    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 700;
    text-align: left;
}


/* ==================================================
   ESTIMATE FORM: Ergebnis nach Paketen
================================================== */

.result-grid-packages {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-grid-packages span {
    min-height: 38px;
}


@media (max-width: 900px) {
    .package-grid,
    .result-grid-packages {
        grid-template-columns: 1fr;
    }
}