.request-form-section {
    padding-top: 120px;
}

.request-form-section .title::after {
    content: "request a notary";
    background: #111;
}

.request-form-section.network-form .title::after {
    content: "join our notary network";
}

.request-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    color: #eee;
    line-height: 1.7;
    font-size: 16px;
}

.request-intro p {
    margin-bottom: 12px;
}

.wizard-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.wizard-progress {
    background: #111;
    padding: 15px 0;
    margin-bottom: 25px;
}

.wizard-progress-inner {
    max-width: 900px;
    margin: 0 auto;
}

.wizard-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
    color: #eee;
}

.wizard-progress-text strong {
    color: #d4af37;
}

.wizard-progress-bar {
    width: 100%;
    height: 8px;
    background: #222;
    border-radius: 6px;
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    background: #d4af37;
    border-radius: 6px;
    transition: width 0.4s ease;
    width: 9%;
}

.wizard-steps-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    gap: 4px;
    flex-wrap: wrap;
}

.wizard-step-label {
    font-size: 11px;
    color: #888;
    text-align: center;
    flex: 1;
    min-width: 55px;
    white-space: nowrap;
}

.wizard-step-label.active {
    color: #d4af37;
    font-weight: 600;
}

.wizard-step-label.done {
    color: #fff;
}

.step-panel {
    display: none;
    background: #222;
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.step-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-panel h3 {
    font-size: 22px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 8px;
    font-family: 'Ubuntu', sans-serif;
}

.step-panel .step-desc {
    color: #eee;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.form-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Question text — direct child label without an input inside */
.form-group > label:not(:has(input)) {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 14px;
    font-family: 'Ubuntu', sans-serif;
    line-height: 1.4;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a3a3a;
}

.form-group > label:not(:has(input)) .required {
    color: #ff6b6b;
    margin-left: 3px;
}

/* Agreement checkboxes (label wraps input) */
.form-group > label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    font-weight: 400;
    color: #eee;
    cursor: pointer;
    padding: 14px 16px;
    border-radius: 6px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-bottom: 1px solid #444;
    margin-bottom: 0;
    line-height: 1.5;
}

.form-group > label:has(input[type="checkbox"]) input {
    margin-top: 4px;
    accent-color: #d4af37;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.form-group .field-hint {
    font-size: 13px;
    color: #aaa;
    margin-top: 8px;
    margin-bottom: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    height: 45px;
    border: 1px solid lightgrey;
    border-radius: 6px;
    outline: none;
    padding: 0 15px;
    font-size: 17px;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: #111;
    margin-top: 4px;
}

.form-group textarea {
    height: 120px;
    padding-top: 10px;
    resize: vertical;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #d4af37;
    border-radius: 6px;
    background: #1a1a1a;
    color: #eee;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
    background: #1e1e1e;
    padding: 18px;
    border-radius: 6px;
    border: 1px solid #333;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
}

.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 400;
    color: #ddd;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 6px;
    background: #252525;
    border: 1px solid #3a3a3a;
    transition: background 0.2s, border-color 0.2s;
    font-family: 'Poppins', sans-serif;
}

.checkbox-group label:hover,
.radio-group label:hover {
    background: #2e2e2e;
    border-color: #d4af37;
}

.checkbox-group label:has(input:checked),
.radio-group label:has(input:checked) {
    background: #2a2520;
    border-color: #d4af37;
    color: #fff;
}

.checkbox-group input,
.radio-group input {
    accent-color: #d4af37;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.conditional-field {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.conditional-field.visible {
    display: block;
}

.field-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.field-error.show {
    display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #ff6b6b;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
    padding-bottom: 40px;
}

.wizard-nav .btn-back,
.wizard-nav .btn-next,
.wizard-nav .btn-submit {
    height: 47px;
    min-width: 140px;
    padding: 0 30px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.wizard-nav .btn-next,
.wizard-nav .btn-submit {
    border: 2px solid #d4af37;
    background: #d4af37;
    color: #fff;
    margin-left: auto;
}

.wizard-nav .btn-next:hover,
.wizard-nav .btn-submit:hover {
    background: transparent;
    color: #d4af37;
}

.wizard-nav .btn-next:disabled,
.wizard-nav .btn-back:disabled,
.wizard-nav .btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.wizard-nav .btn-submit.is-loading,
.wizard-nav .btn-submit.is-loading:hover {
    background: #d4af37;
    color: #fff;
}

.wizard-nav .btn-submit.is-loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -2px;
    animation: submit-spin 0.8s linear infinite;
}

@keyframes submit-spin {
    to {
        transform: rotate(360deg);
    }
}

.wizard-nav .btn-back {
    border: 2px solid #d4af37;
    background: transparent;
    color: #d4af37;
}

.wizard-nav .btn-back:hover {
    background: #d4af37;
    color: #fff;
}

.wizard-nav .btn-back.hidden {
    visibility: hidden;
}

.wizard-nav .btn-submit {
    display: none;
}

.wizard-nav .btn-submit.visible {
    display: block;
}

.wizard-nav .btn-next.hidden {
    display: none;
}

.form-alert {
    display: none;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid #dc3545;
    color: #ffb3ba;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.form-alert.is-visible {
    display: block;
}

.turnstile-wrap {
    margin-top: 24px;
    margin-bottom: 10px;
}

.turnstile-wrap[hidden] {
    display: none !important;
}

.turnstile-wrap.is-visible {
    display: block;
}

.turnstile-wrap label {
    display: block;
    margin-bottom: 10px;
}

.turnstile-wrap #cfTurnstile {
    min-height: 65px;
}

.turnstile-wrap.has-error .field-error {
    display: block;
}

@media (max-width: 768px) {
    .request-form-section {
        padding-top: 100px;
    }

    .step-panel {
        padding: 20px 15px;
    }

    .wizard-steps-labels {
        display: none;
    }

    .wizard-nav {
        flex-direction: column;
    }

    .wizard-nav .btn-back,
    .wizard-nav .btn-next,
    .wizard-nav .btn-submit {
        width: 100%;
        margin-left: 0;
    }

    .wizard-nav .btn-back.hidden {
        display: none;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
