.sf2-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px 40px;
    box-sizing: border-box;
    font-family: 'Asap', sans-serif;
}

.sf2-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    position: relative;
}

.sf2-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.sf2-stepper::before {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(25% + 4px);
    right: calc(25% + 4px);
    height: 2px;
    background-color: #ddd;
    z-index: 0;
}

.sf2-step__circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #ddd;
    background-color: #fff;
    color: #999;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.sf2-step__label {
    font-size: 12px;
    color: #888;
    text-align: center;
    max-width: 120px;
    line-height: 1.3;
}

.sf2-step--done .sf2-step__circle {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
    font-size: 16px;
}

.sf2-step--done .sf2-step__label {
    color: #4CAF50;
    font-weight: 600;
}

.sf2-step--active .sf2-step__circle {
    border-color: #4CAF50;
    color: #4CAF50;
    font-weight: 700;
}

.sf2-step--active .sf2-step__label {
    color: #4CAF50;
    font-weight: 600;
}

.sf2-header {
    text-align: center;
    margin-bottom: 24px;
}

.sf2-header__title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.2;
}

.sf2-header__subtitle {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px;
    line-height: 1.5;
}

.sf2-wrapper .form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #3a3a3a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.sf2-required {
    color: #c0392b;
    margin-left: 2px;
    font-weight: 600;
}

.sf2-optional {
    font-weight: 400;
    color: #888;
    font-size: 11px;
    margin-left: 3px;
}

.sf2-field-group {
    display: flex;
    flex-direction: column;
}

.sf2-field-group .block-input,
.sf2-field-group .block-input-select,
.sf2-field-group .sf2-address-autocomplete-wrapper {
    margin-bottom: 0 !important;
}

.sf2-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 20px 16px;
    margin-bottom: 16px;
}

.sf2-section .block-input {
    display: flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
}

.sf2-section .block-input .form-input,
.sf2-section .sf2-date-wrapper input[type="date"] {
    height: 48px;
    box-sizing: border-box;
    border-radius: 0;
}

.sf2-section .block-input-select select {
    height: 48px !important;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    box-sizing: border-box;
    width: 100%;
    padding: 0 12px;
    font-size: 1em;
    font-family: 'Asap', sans-serif;
}

.sf2-section .sf2-date-wrapper input[type="date"] {
    border-radius: 6px;
}

.sf2-section__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.sf2-section__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    background-color: #f0f0f0;
}

.sf2-section__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.sf2-section__desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px;
    line-height: 1.5;
}

.sf2-section .block-input,
.sf2-section .block-input-select,
.sf2-section .sf2-row,
.sf2-section .sf2-field-group,
.sf2-section .sf2-civility-wrapper,
.sf2-section .sf2-link-add,
.sf2-section #sf2-complement-block {
    margin-bottom: 12px !important;
}

.sf2-section > .sf2-row:last-child,
.sf2-section > .sf2-field-group:last-child,
.sf2-section > .sf2-civility-wrapper:last-child {
    margin-bottom: 0 !important;
}

.sf2-section .sf2-row > * {
    margin-bottom: 0 !important;
}

.sf2-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

@media (max-width: 500px) {
    .sf2-row {
        grid-template-columns: 1fr;
    }
}

.sf2-date-wrapper {
    margin-bottom: 12px;
}

.sf2-date-wrapper input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}

.sf2-date-wrapper input[type="date"]:focus {
    outline: none;
    border-color: #DA091B;
}

body.mca-theme .sf2-date-wrapper input[type="date"]:focus,
.mca .sf2-date-wrapper input[type="date"]:focus {
    border-color: #FDB833;
}

.sf2-field-note {
    font-size: 12px;
    color: #888;
    margin: -4px 0 10px;
    display: block;
}

.sf2-civility-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

.sf2-civility-toggle {
    display: flex;
    gap: 8px;
}

.sf2-civility-btn {
    flex: 1;
    height: 48px;
    border: 1.5px solid #ddd;
    background: #fff;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Asap', sans-serif;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    outline: none;
}

.sf2-civility-btn:hover {
    border-color: #bbb;
    color: #333;
}

.sf2-civility-btn.sf2-civility-btn--active {
    border-color: currentColor;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.03);
}

.sf2-civility-standalone {
    max-width: 220px;
}

.sf2-date-error {
    display: block;
    font-size: 12px;
    color: #c0392b;
    margin-top: 4px;
}

.sf2-row--civ-date {
    align-items: start;
}

.sf2-link-add {
    display: inline-block;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    padding: 2px 0;
    margin-bottom: 0;
}

.sf2-link-add:hover {
    text-decoration: underline;
}

.sf2-address-autocomplete-wrapper {
    position: relative;
}

.sf2-address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
    max-height: 220px;
    overflow-y: auto;
}

.sf2-address-suggestion {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.3;
}

.sf2-address-suggestion:last-child {
    border-bottom: none;
}

.sf2-address-suggestion:hover {
    background: #f7f7f7;
}

.sf2-address-no-result {
    color: #999;
    font-style: italic;
    cursor: default;
    pointer-events: none;
}

.sf2-address-loading .block-input {
    opacity: 0.65;
    transition: opacity 0.15s;
}

.sf2-cta-wrapper {
    margin-top: 20px;
    text-align: center;
}

.sf2-errors {
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .sf2-wrapper {
        padding: 0 12px 32px;
    }

    .sf2-header__title {
        font-size: 22px;
    }

    .sf2-section {
        padding: 16px 14px 12px;
    }

    .sf2-stepper::before {
        top: 16px;
    }

    .sf2-step__circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
