.contact-form {
    position: relative;
    overflow: hidden;
    scroll-margin-top: var(--nav-h);
}
.contact-form__bg {
    position: absolute;
    top: -15%; left: 0;
    width: 100%; height: 130%;
    z-index: 0;
}
.contact-form__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    opacity: 0.6;
}
.contact-form__overlay {
    position: absolute; inset: 0;
    z-index: 0;
    background: linear-gradient(to bottom, rgba(31,31,31,0.4), rgba(31,31,31,0.3), rgba(31,31,31,0.4));
}

.contact-form__inner {
    position: relative;
    z-index: 1;
}

.contact-form__header {
    text-align: center;
    margin-bottom: 3rem;
}
.contact-form__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-light);
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
}
@media (min-width: 768px)  { .contact-form__title { font-size: 1.75rem; } }
@media (min-width: 1024px) { .contact-form__title { font-size: 2rem; } }
.contact-form__subtitle {
    color: var(--brand-gray);
    font-weight: 300;
    line-height: 1.5;
}

.contact-form__card {
    position: relative;
    overflow: hidden;
    background: rgba(38,38,38,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(68,68,68,0.5);
    border-radius: 1.75rem;
    padding: 2rem;
    max-width: 50rem;
    margin: 0 auto;
}
@media (min-width: 768px) { .contact-form__card { padding: 3rem; } }
.contact-form__progress {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--brand-darker);
}
.contact-form__progress-bar {
    display: block;
    height: 100%;
    background: var(--brand-light);
    transition: width 0.5s ease-in-out;
}

.contact-form__step { border: 0; padding: 0; margin: 0; }
.contact-form__step[hidden] { display: none; }
.contact-form__step {
    display: flex; flex-direction: column;
    gap: 2rem;
}
.contact-form__step.is-active {
    animation: stepIn 0.3s var(--premium);
}
@keyframes stepIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.contact-form__step-head {
    display: flex; align-items: center; justify-content: space-between;
    color: var(--brand-light);
    flex-wrap: wrap; gap: 0.5rem;
}
.contact-form__step-head h3 { font-size: 1.25rem; font-weight: 500; color: var(--brand-light); }
.contact-form__step-head span { font-size: 0.875rem; color: var(--brand-gray); }

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { .contact-form__row { grid-template-columns: repeat(2, 1fr); } }

.contact-form__field {
    display: flex; flex-direction: column;
    gap: 0.5rem;
}
.contact-form__field > span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand-gray);
}
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(68,68,68,0.5);
    padding: 0.75rem 0;
    color: var(--brand-light);
    transition: border-color 0.3s;
    appearance: none;
    resize: none;
}
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus { outline: none; border-color: var(--brand-light); }
.contact-form__field select option { background: var(--brand-dark); color: var(--brand-light); }

.contact-form__radio-group { display: flex; flex-direction: column; gap: 1rem; }
.contact-form__group-label {
    font-size: 0.85rem; font-weight: 500; color: var(--brand-gray);
}
.contact-form__radios {
    display: flex; flex-wrap: wrap;
    gap: 1.5rem;
}
.contact-form__radios--column { flex-direction: column; gap: 0.75rem; }
.contact-form__radio {
    display: inline-flex; align-items: center; gap: 0.75rem;
    cursor: pointer;
    color: var(--brand-light);
}
.contact-form__radio input { position: absolute; opacity: 0; pointer-events: none; }
.contact-form__radio-dot {
    position: relative;
    width: 1.25rem; height: 1.25rem;
    border-radius: 50%;
    border: 1px solid rgba(68,68,68,0.8);
    transition: border-color 0.3s;
    flex-shrink: 0;
}
.contact-form__radio-dot::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 0.6rem; height: 0.6rem;
    border-radius: 50%;
    background: var(--brand-light);
    transition: transform 0.2s;
}
.contact-form__radio input:checked + .contact-form__radio-dot { border-color: var(--brand-light); }
.contact-form__radio input:checked + .contact-form__radio-dot::after { transform: translate(-50%, -50%) scale(1); }

.contact-form__checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) { .contact-form__checkboxes { grid-template-columns: repeat(3, 1fr); } }
.contact-form__checkbox {
    display: inline-flex; align-items: center; gap: 0.75rem;
    color: var(--brand-light);
    cursor: pointer;
}
.contact-form__checkbox input {
    accent-color: var(--brand-light);
    width: 1rem; height: 1rem;
}

.contact-form__upload { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-form__upload-label { font-size: 0.85rem; color: var(--brand-gray); font-weight: 500; }
.contact-form__upload-box {
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    border: 1px dashed rgba(68,68,68,0.5);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    color: var(--brand-gray);
    transition: border-color 0.3s, color 0.3s;
    cursor: pointer;
}
.contact-form__upload-box:hover { border-color: rgba(245,245,240,0.5); color: var(--brand-light); }
.contact-form__upload-box span { font-size: 0.9rem; word-break: break-all; padding: 0 0.5rem; }

.contact-form__consent {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding-top: 0.5rem;
    margin: 0;
    cursor: pointer;
    text-align: left;
    width: 100%;
}
.contact-form__consent input { margin-top: 0.25rem; flex-shrink: 0; accent-color: var(--brand-light); }
.contact-form__consent span { font-size: 0.85rem; color: var(--brand-gray); font-weight: 300; line-height: 1.6; }
.contact-form__consent a { text-decoration: underline; }
.contact-form__consent a:hover { color: var(--brand-light); }

.contact-form__nav {
    padding-top: 1rem;
    display: flex; align-items: center; justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}
.contact-form__back {
    margin-right: auto;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-gray);
    transition: color 0.3s;
}
.contact-form__back:hover { color: var(--brand-light); }
.contact-form__nav .btn { width: 100%; }
@media (min-width: 640px) { .contact-form__nav .btn { width: auto; } }

.contact-form__success {
    text-align: center;
    padding: 3rem 1rem;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.contact-form__success[hidden],
.contact-form__form[hidden] { display: none !important; }
.contact-form__success-icon { color: var(--brand-light); }
.contact-form__success h3 { font-size: 1.5rem; font-weight: 700; color: var(--brand-light); }
.contact-form__success p { color: var(--brand-gray); font-weight: 300; max-width: 32rem; }

/* Short form */
.contact-form__short {
    display: flex; flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    max-width: 38rem;
    margin: 0 auto;
    text-align: left;
}
.contact-form__short input,
.contact-form__short textarea {
    width: 100%;
    background: rgba(38,38,38,0.8);
    border: 1px solid rgba(68,68,68,0.5);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--brand-light);
    transition: border-color 0.3s;
}
.contact-form__short input:focus, .contact-form__short textarea:focus { outline: none; border-color: rgba(245,245,240,0.5); }
.contact-form__short textarea { resize: none; }
.contact-form__short input::placeholder, .contact-form__short textarea::placeholder { color: rgba(200,200,200,0.5); }
