/* Vehicle application page. Form basics come from contact-page.css. */

.block-application {
    padding: 2.5rem 0 3rem;
    background: #f6f7fb;
}

.app-intro {
    max-width: 44rem;
    margin: 0 auto 1.5rem;
    text-align: center;
}
.app-intro__title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
}
.app-intro__lead {
    margin: 0;
    color: #5d6472;
    line-height: 1.6;
}

.app-card {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(20, 22, 26, 0.08);
    scroll-margin-top: 6rem;
}

/* Steps */
.app-progress {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.app-progress[hidden] { display: none; }
.app-progress__item {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid #e3e6ee;
    font-size: 0.8rem;
    font-weight: 700;
    color: #8b919c;
}
.app-progress__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #eceef4;
    font-size: 0.75rem;
}
.app-progress__item.is-active { color: #14161a; border-bottom-color: #fdd700; }
.app-progress__item.is-active .app-progress__num { background: #fdd700; }
.app-progress__item.is-done { color: #14161a; border-bottom-color: #14161a; }
.app-progress__item.is-done .app-progress__num { background: #14161a; color: #fff; }

.app-step {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}
.app-step[hidden] { display: none; }
.app-step legend {
    float: none;
    width: auto;
    margin: 0 0 1rem;
    font-size: 1.3rem;
    font-weight: 800;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}
.app-field--wide { grid-column: 1 / -1; }
.app-field label { margin-bottom: 0.35rem; }
.app-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: #6b7280;
}
p.app-hint { margin: 0.75rem 0 0; }

.app-secure {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: #0a7a4a;
}
.app-secure i { margin-right: 0.3rem; }

.app-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}
.app-nav [hidden] { display: none; }
.app-nav .btn { font-weight: 700; padding: 0.75rem 1.5rem; }

.app-help {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}
.app-help a { color: #14161a; font-weight: 700; }

@media (max-width: 575.98px) {
    .app-card { padding: 1.25rem 1rem; }
    .app-grid { grid-template-columns: 1fr; }
    .app-progress__label { display: none; }   /* numbers only; the section title is right below */
    .app-progress__item { justify-content: center; }
    .app-nav .btn { flex: 1 1 auto; }
}

/* Consent + electronic signature */
.app-sign { margin-top: 1.25rem; }
.app-sign__box {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e9e9e7;
    border-radius: 0.6rem;
    background: #fafaf8;
}
.app-sign__title { font-size: 1rem; font-weight: 800; margin: 0 0 0.75rem; }
.app-sign__date { margin: 0.5rem 0 0.25rem; font-size: 0.9rem; }
.app-sign__hint-btn { font-size: 0.8rem; color: #6b7280; margin: 0.75rem 0 0; }
.app-nav [data-app-submit]:disabled { opacity: 0.5; cursor: not-allowed; }

/* Inline validation messages, custom file button */
.app-field { position: relative; }
.app-field.is-invalid .form-control,
.app-field.is-invalid .form-select { border-color: #c62828; background-color: #fff8f8; }
.app-error { display: block; margin-top: 0.3rem; font-size: 0.8rem; font-weight: 600; color: #c62828; }
.app-step-alert {
    margin: 0 0 1rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.5rem;
    background: #fbeaea;
    border: 1px solid #f0c4c4;
    color: #8f1d1d;
    font-size: 0.9rem;
    font-weight: 600;
}
.app-step-alert[hidden] { display: none; }
.app-file__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.app-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #e9e9e7;
    border-radius: 0.5rem;
    background: #f7f7f5;
}
.app-field.is-invalid .app-file { border-color: #c62828; background: #fff8f8; }
.app-file__btn { font-weight: 700; white-space: nowrap; }
.app-file__name { font-size: 0.9rem; color: #5d6472; overflow-wrap: anywhere; }
