.cgsf-form-wrap {
    max-width: 920px;
    width: 100%;
    background: #fff;
    border: 1px solid #d8dbe1;
    border-radius: 8px;
    padding: 20px;
    margin: 24px auto;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.cgsf-form-wrap,
.cgsf-form-wrap * {
    box-sizing: border-box;
}

.cgsf-form {
    margin: 0;
}

.cgsf-preview-body {
    margin: 0;
    padding: 0;
    background: #f3f5f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cgsf-preview-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.cgsf-preview-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #2271b1;
    color: #fff;
    border-radius: 8px;
}

.cgsf-preview-header span {
    opacity: 0.95;
}

.cgsf-alert {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.cgsf-alert-success {
    background: #e8f8ee;
    color: #146c2e;
    border: 1px solid #bbe8c9;
}

.cgsf-alert-error {
    background: #fff0f1;
    color: #9b1c20;
    border: 1px solid #ffd0d3;
}

.cgsf-alert ul {
    margin: 0;
    padding-left: 18px;
}

.cgsf-step {
    display: none;
}

.cgsf-step.is-active {
    display: block;
}

.cgsf-step-title {
    display: none !important;
}

.cgsf-field {
    margin-bottom: 16px;
}

.cgsf-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.cgsf-field-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.cgsf-field-label-row label {
    margin-bottom: 0;
}

.cgsf-desc-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.cgsf-desc-trigger {
    appearance: none;
    border: 0;
    background: transparent;
    color: #0b1d3a;
    width: 22px;
    height: 22px;
    border-radius: 0;
    font-size: 18px;
    line-height: 1;
    font-style: normal;
    font-weight: 400;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    overflow: visible;
}

.cgsf-desc-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: inherit;
    line-height: 1;
    pointer-events: none;
}

.cgsf-desc-trigger:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.cgsf-desc-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translate(-50%, -4px);
    min-width: 230px;
    max-width: 320px;
    background: #102a57;
    color: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 500;
    box-shadow: 0 18px 35px rgba(6, 21, 48, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.cgsf-desc-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 14px;
    height: 14px;
    transform: translateX(-50%) rotate(45deg);
    background: #102a57;
}

@media (hover: hover) and (pointer: fine) {
    .cgsf-desc-wrap:hover .cgsf-desc-tooltip,
    .cgsf-desc-wrap:focus-within .cgsf-desc-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        pointer-events: auto;
    }
}

.cgsf-description {
    margin: 6px 0;
    color: #5b6473;
    font-size: 14px;
}

.cgsf-desc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 16, 38, 0.58);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

@media (max-width: 782px), (hover: none) {
    .cgsf-field-label-row {
        gap: 8px;
    }

    .cgsf-desc-trigger {
        width: 24px;
        height: 24px;
        font-size: 19px;
    }

    .cgsf-desc-wrap.is-open-mobile .cgsf-desc-tooltip {
        position: fixed;
        left: 50%;
        top: 50%;
        width: min(92vw, 380px);
        max-width: 380px;
        max-height: 70vh;
        overflow: auto;
        transform: translate(-50%, -50%);
        border-radius: 16px;
        padding: 20px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 100;
    }

    .cgsf-desc-wrap.is-open-mobile .cgsf-desc-tooltip::before {
        display: none;
    }

    body.cgsf-desc-modal-open {
        overflow: hidden;
    }

    body.cgsf-desc-modal-open .cgsf-desc-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.cgsf-calc-display-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #0f2745;
}

.cgsf-calc-display-label {
    font-weight: 700;
}

.cgsf-calc-display-value {
    font-weight: 700;
}

.cgsf-field input[type="text"],
.cgsf-field input[type="email"],
.cgsf-field input[type="tel"],
.cgsf-field input[type="number"],
.cgsf-field input[type="date"],
.cgsf-field input[type="time"],
.cgsf-field input[type="url"],
.cgsf-field input[type="file"],
.cgsf-field select,
.cgsf-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd2dc;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
}

.cgsf-field textarea {
    min-height: 110px;
    resize: vertical;
}

.cgsf-field.cgsf-field-size-small input[type="text"],
.cgsf-field.cgsf-field-size-small input[type="email"],
.cgsf-field.cgsf-field-size-small input[type="tel"],
.cgsf-field.cgsf-field-size-small input[type="number"],
.cgsf-field.cgsf-field-size-small input[type="date"],
.cgsf-field.cgsf-field-size-small input[type="time"],
.cgsf-field.cgsf-field-size-small input[type="url"],
.cgsf-field.cgsf-field-size-small select,
.cgsf-field.cgsf-field-size-small textarea {
    max-width: 220px;
}

.cgsf-field.cgsf-field-size-medium input[type="text"],
.cgsf-field.cgsf-field-size-medium input[type="email"],
.cgsf-field.cgsf-field-size-medium input[type="tel"],
.cgsf-field.cgsf-field-size-medium input[type="number"],
.cgsf-field.cgsf-field-size-medium input[type="date"],
.cgsf-field.cgsf-field-size-medium input[type="time"],
.cgsf-field.cgsf-field-size-medium input[type="url"],
.cgsf-field.cgsf-field-size-medium select,
.cgsf-field.cgsf-field-size-medium textarea {
    max-width: 420px;
}

.cgsf-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cgsf-grid-span-2 {
    grid-column: span 2;
}

.cgsf-name-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.cgsf-name-part .cgsf-sub-label {
    margin-bottom: 5px;
    font-size: 13px;
    color: #4f5869;
}

.cgsf-choice-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.cgsf-choice-group label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-weight: 400;
    margin-bottom: 0;
}

.cgsf-choice-group input[type="radio"],
.cgsf-choice-group input[type="checkbox"] {
    margin-top: 3px;
}

.cgsf-required {
    color: #b42318;
}

.cgsf-consent-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.cgsf-captcha-widget {
    min-height: 78px;
}

.cgsf-file-current {
    margin-top: 8px;
}

.cgsf-step-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.cgsf-form-wrap .cgsf-btn,
.cgsf-form-wrap .cgsf-field-submit button {
    appearance: none;
    background: #2271b1;
    border: 1px solid #2271b1;
    color: #fff;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
}

.cgsf-form-wrap .cgsf-btn:hover,
.cgsf-form-wrap .cgsf-field-submit button:hover {
    background: #135e96;
    border-color: #135e96;
}

.cgsf-form-wrap .cgsf-btn:disabled {
    background: #a3acb8;
    border-color: #a3acb8;
    cursor: not-allowed;
}

.cgsf-form-wrap .cgsf-btn.cgsf-prev {
    background: #fff;
    color: #2271b1;
}

.cgsf-form-wrap .cgsf-btn.cgsf-prev:hover {
    background: #eff6ff;
    color: #135e96;
}

.cgsf-field-type-section {
    border-top: 1px solid #e6e9ef;
    padding-top: 10px;
}

.cgsf-field-type-section h3 {
    margin: 0 0 6px;
}

.cgsf-otp-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.cgsf-otp-form,
.cgsf-otp-resend-form {
    margin: 0;
}

.cgsf-otp-form .cgsf-step-nav {
    margin-top: 12px;
}

.cgsf-otp-resend-form {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cgsf-otp-resend-note {
    color: #5b6473;
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 680px) {
    .cgsf-grid-2 {
        grid-template-columns: 1fr;
    }

    .cgsf-grid-span-2 {
        grid-column: span 1;
    }

    .cgsf-name-grid {
        grid-template-columns: 1fr;
    }
}

/* Mortgage-style visual theme */
.cgsf-form-wrap {
    max-width: 1320px;
    background: #f4f6f8;
    border: 0;
    border-radius: 0;
    padding: 28px 34px 32px;
    margin: 16px auto;
    box-shadow: none;
}

.cgsf-form {
    max-width: 1240px;
    margin: 0 auto;
}

.cgsf-field {
    margin-bottom: 28px;
}

.cgsf-step-title {
    margin-bottom: 20px;
    font-size: clamp(18px, 1.6vw, 28px);
    font-weight: 700;
    color: #11264d;
}

.cgsf-field > label,
.cgsf-field-label-row label {
    margin-bottom: 14px;
    color: #0e2348;
    font-size: clamp(30px, 2.3vw, 44px);
    line-height: 1.12;
    font-weight: 800;
}

.cgsf-desc-trigger {
    width: 34px;
    height: 34px;
    border-width: 2px;
    color: #0e2348;
    border-color: #0e2348;
    font-size: 21px;
}

.cgsf-description {
    margin-top: 10px;
    color: #5b6577;
    font-size: clamp(15px, 1vw, 19px);
    line-height: 1.35;
}

.cgsf-field > input[type="text"],
.cgsf-field > input[type="email"],
.cgsf-field > input[type="tel"],
.cgsf-field > input[type="number"],
.cgsf-field > input[type="date"],
.cgsf-field > input[type="time"],
.cgsf-field > input[type="url"],
.cgsf-field > select,
.cgsf-field > textarea,
.cgsf-name-part input,
.cgsf-name-part select {
    border: 2px solid #c7d3e5;
    border-radius: 16px;
    min-height: 66px;
    padding: 14px 20px;
    color: #0f2745;
    background: #fff;
    font-size: clamp(18px, 1.35vw, 24px);
    line-height: 1.2;
}

.cgsf-field > textarea {
    min-height: 180px;
}

.cgsf-choice-group {
    gap: 14px;
}

.cgsf-choice-group label {
    width: 100%;
    min-height: 72px;
    padding: 14px 22px;
    border: 1px solid #d9dee7;
    border-radius: 18px;
    background: #fff;
    color: #14284d;
    font-size: clamp(19px, 1.35vw, 24px);
    line-height: 1.18;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cgsf-choice-group input[type="radio"],
.cgsf-choice-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 3px solid #536280;
    background: #fff;
    margin: 0;
    position: relative;
    flex-shrink: 0;
}

.cgsf-choice-group input[type="checkbox"] {
    border-radius: 8px;
}

.cgsf-choice-group input[type="radio"]:checked::after,
.cgsf-choice-group input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 999px;
    background: #0b1f4a;
}

.cgsf-choice-group input[type="checkbox"]:checked::after {
    border-radius: 4px;
}

.cgsf-choice-group label.is-selected,
.cgsf-choice-group label:has(input[type="radio"]:checked),
.cgsf-choice-group label:has(input[type="checkbox"]:checked) {
    background: #081f4d;
    border-color: #081f4d;
    color: #fff;
}

.cgsf-choice-group label.is-selected input[type="radio"],
.cgsf-choice-group label.is-selected input[type="checkbox"],
.cgsf-choice-group label:has(input[type="radio"]:checked) input[type="radio"],
.cgsf-choice-group label:has(input[type="checkbox"]:checked) input[type="checkbox"] {
    border-color: rgba(255, 255, 255, 0.88);
    background: transparent;
}

.cgsf-choice-group label.is-selected input[type="radio"]:checked::after,
.cgsf-choice-group label.is-selected input[type="checkbox"]:checked::after,
.cgsf-choice-group label:has(input[type="radio"]:checked) input[type="radio"]:checked::after,
.cgsf-choice-group label:has(input[type="checkbox"]:checked) input[type="checkbox"]:checked::after {
    background: #fff;
}

.cgsf-calc-display-line {
    font-size: clamp(20px, 1.6vw, 28px);
    color: #0f2745;
    margin-bottom: 4px;
}

.cgsf-step-nav {
    border-top: 1px solid #d8dee8;
    margin-top: 14px;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.cgsf-form-wrap .cgsf-btn,
.cgsf-form-wrap .cgsf-field-submit button {
    width: 100%;
    min-height: 64px;
    border-radius: 2px;
    border: 1px solid #081f4d;
    background: #081f4d;
    color: #fff;
    font-size: clamp(18px, 1.4vw, 30px);
    font-weight: 800;
    line-height: 1.1;
    padding: 12px 18px;
}

.cgsf-form-wrap .cgsf-btn:hover,
.cgsf-form-wrap .cgsf-field-submit button:hover {
    background: #06173b;
    border-color: #06173b;
}

.cgsf-form-wrap .cgsf-btn.cgsf-prev {
    align-self: center;
    width: auto;
    min-height: 54px;
    background: #f7f8fb;
    border: 1px solid #e3e8f1;
    color: #12284f;
    border-radius: 8px;
    font-size: clamp(16px, 1.1vw, 22px);
    font-weight: 700;
    padding: 8px 20px;
}

.cgsf-form-wrap .cgsf-btn.cgsf-prev:hover {
    background: #eef3fb;
    border-color: #cfd8e6;
    color: #0f2745;
}

.cgsf-field-type-name .cgsf-sub-label {
    color: #4f5f79;
    font-size: clamp(14px, 1.1vw, 20px);
    margin-bottom: 6px;
}

.cgsf-otp-wrap {
    max-width: 1020px;
    margin: 0 auto;
}

.cgsf-otp-shell {
    background: #1db06f;
    color: #fff;
    border-radius: 28px;
    padding: 28px 26px 24px;
}

.cgsf-otp-step-title {
    font-size: clamp(16px, 1.2vw, 22px);
    font-weight: 700;
    opacity: 0.95;
}

.cgsf-otp-title {
    margin: 10px 0 12px;
    font-size: clamp(34px, 3.1vw, 56px);
    line-height: 1.06;
    font-weight: 800;
    color: #fff;
}

.cgsf-otp-copy {
    margin: 0 0 24px;
    color: #e9fff3;
    font-size: clamp(18px, 1.5vw, 28px);
    line-height: 1.4;
    max-width: 900px;
}

.cgsf-otp-form .cgsf-step-nav {
    border-top: 0;
    padding-top: 0;
    margin-top: 16px;
}

.cgsf-otp-digits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin: 4px 0 12px;
}

.cgsf-otp-digit {
    width: 100%;
    min-height: 122px;
    border: 0;
    border-radius: 18px;
    background: #cfe0d8;
    text-align: center;
    font-size: clamp(40px, 4vw, 70px);
    font-weight: 700;
    color: #4b5a62;
    line-height: 1;
}

.cgsf-otp-digit:focus {
    outline: 3px solid #103260;
    outline-offset: 2px;
}

.cgsf-otp-code-sent {
    margin: 8px 0 0;
    color: #e6fff0;
    font-size: 15px;
    line-height: 1.4;
}

.cgsf-otp-inline-error {
    margin: 10px 0 0;
    color: #fff3f3;
    font-weight: 700;
    font-size: 15px;
}

.cgsf-otp-submit {
    background: #fff !important;
    color: #0e2348 !important;
    border-color: #fff !important;
}

.cgsf-otp-submit:hover {
    background: #f5f9ff !important;
    color: #0b1f47 !important;
}

.cgsf-otp-resend-form {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cgsf-otp-resend-copy {
    color: #ecfff3;
    font-size: clamp(18px, 1.35vw, 26px);
    font-weight: 700;
    text-align: center;
}

.cgsf-otp-resend-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #ecfff3;
    font-size: clamp(20px, 1.5vw, 28px);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 0;
}

.cgsf-otp-resend-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.cgsf-otp-resend-note {
    color: #d8ffe8;
    font-size: 14px;
}

.iti {
    width: 100%;
}

.cgsf-field.cgsf-field-type-phone .iti {
    width: 100% !important;
    display: block;
}

.cgsf-field.cgsf-field-type-phone .iti__country-container,
.cgsf-field.cgsf-field-type-phone .iti__selected-country,
.cgsf-field.cgsf-field-type-phone .iti__selected-country-primary,
.cgsf-field.cgsf-field-type-phone .iti--separate-dial-code .iti__selected-flag {
    background: #f3f5f9;
    border-right: 1px solid #ccd6e5;
    border-radius: 10px 0 0 10px;
    min-height: 56px;
    display: flex;
    align-items: center;
    padding-left: 12px;
    padding-right: 10px;
}

.cgsf-field.cgsf-field-type-phone .iti--separate-dial-code .iti__selected-dial-code {
    color: #0b1c3d;
    font-weight: 600;
}

.iti__country-list {
    max-width: 320px;
    border-radius: 10px;
    border-color: #ccd6e5;
    z-index: 99999;
}

.cgsf-field.cgsf-field-type-phone .iti__country-list {
    max-width: min(92vw, 360px);
}

.cgsf-field.cgsf-field-type-phone .iti__country {
    font-size: 15px;
}

.cgsf-field.cgsf-field-type-phone .iti__dial-code {
    color: #6f7f9a;
}

@media (max-width: 1024px) {
    .cgsf-form-wrap {
        padding: 22px 18px 24px;
    }

    .cgsf-field > label,
    .cgsf-field-label-row label {
        font-size: clamp(24px, 3.2vw, 34px);
    }

    .cgsf-field > input[type="text"],
    .cgsf-field > input[type="email"],
    .cgsf-field > input[type="tel"],
    .cgsf-field > input[type="number"],
    .cgsf-field > input[type="date"],
    .cgsf-field > input[type="time"],
    .cgsf-field > input[type="url"],
    .cgsf-field > select,
    .cgsf-field > textarea,
    .cgsf-name-part input,
    .cgsf-name-part select {
        min-height: 64px;
        font-size: clamp(17px, 2.1vw, 24px);
    }

    .cgsf-choice-group label {
        min-height: 72px;
        font-size: clamp(17px, 2vw, 24px);
    }
}

@media (max-width: 680px) {
    .cgsf-form-wrap {
        padding: 18px 14px 20px;
        margin: 10px auto;
    }

    .cgsf-field {
        margin-bottom: 22px;
    }

    .cgsf-step-title {
        font-size: 22px;
    }

    .cgsf-field > label,
    .cgsf-field-label-row label {
        font-size: 20px;
        line-height: 1.14;
    }

    .cgsf-desc-trigger {
        width: 30px;
        height: 30px;
        font-size: 19px;
    }

    .cgsf-field > input[type="text"],
    .cgsf-field > input[type="email"],
    .cgsf-field > input[type="tel"],
    .cgsf-field > input[type="number"],
    .cgsf-field > input[type="date"],
    .cgsf-field > input[type="time"],
    .cgsf-field > input[type="url"],
    .cgsf-field > select,
    .cgsf-field > textarea,
    .cgsf-name-part input,
    .cgsf-name-part select {
        min-height: 54px;
        border-radius: 14px;
        font-size: 18px;
    }

    .cgsf-choice-group label {
        min-height: 62px;
        border-radius: 14px;
        font-size: 18px;
        padding: 14px 16px;
        gap: 12px;
    }

    .cgsf-choice-group input[type="radio"],
    .cgsf-choice-group input[type="checkbox"] {
        width: 24px;
        height: 24px;
        border-width: 2px;
    }

    .cgsf-choice-group input[type="radio"]:checked::after,
    .cgsf-choice-group input[type="checkbox"]:checked::after {
        inset: 5px;
    }

    .cgsf-form-wrap .cgsf-btn,
    .cgsf-form-wrap .cgsf-field-submit button {
        min-height: 58px;
        font-size: 22px;
    }

    .cgsf-form-wrap .cgsf-btn.cgsf-prev {
        min-height: 46px;
        font-size: 18px;
    }

    .cgsf-otp-shell {
        border-radius: 18px;
        padding: 16px 14px 18px;
    }

    .cgsf-otp-title {
        font-size: 42px;
    }

    .cgsf-otp-copy {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .cgsf-otp-digits {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .cgsf-otp-digit {
        min-height: 86px;
        font-size: 48px;
        border-radius: 12px;
    }
}

/* =========================================================
   CGSF FRONTEND - GF STYLE COMPACT THEME (LIKE REFERENCE)
========================================================= */

.cgsf-form-wrap {
    background: #ffffff !important;
    padding: 45px 50px 35px !important;
    border-radius: 22px !important;
    max-width: 820px !important;
    margin: 0 auto 24px !important;
    border: 0 !important;
    box-shadow: none !important;
}

.cgsf-form {
    max-width: 720px !important;
    margin: 0 auto !important;
}

.cgsf-step-title {
    margin-bottom: 14px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0c1c3d !important;
}

.cgsf-field {
    margin-bottom: 18px !important;
}

.cgsf-field > label,
.cgsf-field-label-row label {
    margin-bottom: 18px !important;
    color: #0c1c3d !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    line-height: 1.28 !important;
}

.cgsf-field-label-row {
    margin-bottom: 8px !important;
    gap: 10px !important;
}

.cgsf-desc-trigger {
    width: 22px !important;
    height: 22px !important;
    border-radius: 0 !important;
    border: 0 !important;
    color: #0b1d3a !important;
    background: transparent !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    overflow: visible !important;
}

.cgsf-desc-trigger .cgsf-desc-trigger-icon {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    pointer-events: none !important;
}

.cgsf-desc-tooltip {
    left: 50% !important;
    top: 32px !important;
    transform: translateX(-50%) !important;
    min-width: 240px !important;
    max-width: 340px !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    background: #0b1d3a !important;
    color: #fff !important;
}

.cgsf-desc-tooltip::before {
    top: -8px !important;
    width: 16px !important;
    height: 16px !important;
    background: #0b1d3a !important;
}

.cgsf-field input[type="text"],
.cgsf-field input[type="email"],
.cgsf-field input[type="tel"],
.cgsf-field input[type="number"],
.cgsf-field input[type="date"],
.cgsf-field input[type="time"],
.cgsf-field input[type="url"],
.cgsf-field select,
.cgsf-field textarea,
.cgsf-name-part input,
.cgsf-name-part select {
    border: 1px solid #cfd6e3 !important;
    border-radius: 10px !important;
    min-height: 56px !important;
    padding: 14px 16px !important;
    color: #0b1c3d !important;
    background: #fff !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

.cgsf-field input::placeholder,
.cgsf-field textarea::placeholder {
    color: #7a8599 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.cgsf-field.cgsf-field-type-phone input.cgsf-phone-input,
.cgsf-field.cgsf-field-type-phone .iti input.cgsf-phone-input,
.cgsf-field.cgsf-field-type-phone .iti--separate-dial-code input.cgsf-phone-input,
.cgsf-field.cgsf-field-type-phone .iti--allow-dropdown input.cgsf-phone-input {
    padding-left: var(--cgsf-phone-padding-left, 108px) !important;
}

.cgsf-choice-group {
    width: 100% !important;
    max-width: 720px !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cgsf-choice-group label {
    width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 18px 18px 18px 64px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(12, 28, 61, 0.12) !important;
    background: #ffffff !important;
    color: #0c1c3d !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    position: relative !important;
    box-shadow: none !important;
    gap: 0 !important;
}

.cgsf-choice-group label:hover {
    background: #f4f7fb !important;
    border-color: rgba(12, 28, 61, 0.2) !important;
}

.cgsf-choice-group input[type="radio"],
.cgsf-choice-group input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    border: 2px solid rgba(12, 28, 61, 0.75) !important;
    background: #fff !important;
    position: absolute !important;
    left: 22px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}

.cgsf-choice-group input[type="checkbox"] {
    border-radius: 6px !important;
}

.cgsf-choice-group input[type="radio"]:checked::after,
.cgsf-choice-group input[type="checkbox"]:checked::after {
    inset: 4px !important;
}

.cgsf-choice-group label.is-selected,
.cgsf-choice-group label:has(input[type="radio"]:checked),
.cgsf-choice-group label:has(input[type="checkbox"]:checked) {
    background: #0b1d3a !important;
    border-color: #0b1d3a !important;
    color: #ffffff !important;
}

.cgsf-choice-group label.is-selected input[type="radio"],
.cgsf-choice-group label:has(input[type="radio"]:checked) input[type="radio"] {
    border-color: #ffffff !important;
}

.cgsf-choice-group label.is-selected input[type="radio"]:checked::after,
.cgsf-choice-group label:has(input[type="radio"]:checked) input[type="radio"]:checked::after {
    background: #ffffff !important;
}

.cgsf-step-nav {
    border-top: 1px solid rgba(12, 28, 61, 0.18) !important;
    margin-top: 26px !important;
    padding-top: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
}

.cgsf-form-wrap .cgsf-btn.cgsf-next,
.cgsf-form-wrap .cgsf-btn.cgsf-submit,
.cgsf-form-wrap .cgsf-field-submit button {
    width: 100% !important;
    max-width: 720px !important;
    min-height: 64px !important;
    border-radius: 0 !important;
    background: #0b1d3a !important;
    color: #ffffff !important;
    border: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

.cgsf-form-wrap .cgsf-btn.cgsf-next:hover,
.cgsf-form-wrap .cgsf-btn.cgsf-submit:hover,
.cgsf-form-wrap .cgsf-field-submit button:hover {
    background: #08162d !important;
    border-color: #08162d !important;
}

.cgsf-form-wrap .cgsf-btn.cgsf-prev {
    width: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #0b1d3a !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.cgsf-form-wrap .cgsf-btn.cgsf-prev::before {
    content: "← ";
}

.cgsf-form-wrap .cgsf-btn.cgsf-prev:hover {
    text-decoration: underline !important;
    background: transparent !important;
    border-color: transparent !important;
    color: #0b1d3a !important;
}

.cgsf-calc-display-line {
    margin-top: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0b1c3d !important;
    display: inline-flex !important;
    gap: 10px !important;
    align-items: baseline !important;
}

.cgsf-calc-display-line-amount .cgsf-calc-display-value {
    font-size: 22px !important;
    font-weight: 800 !important;
}

@media (max-width: 768px) {
    .cgsf-form-wrap {
        padding: 26px 18px 24px !important;
        border-radius: 16px !important;
    }

    .cgsf-field > label,
    .cgsf-field-label-row label {
        font-size: 22px !important;
    }

    .cgsf-choice-group label {
        padding: 16px 14px 16px 56px !important;
        font-size: 16px !important;
        border-radius: 14px !important;
    }

    .cgsf-choice-group input[type="radio"],
    .cgsf-choice-group input[type="checkbox"] {
        left: 18px !important;
    }

    .cgsf-form-wrap .cgsf-btn.cgsf-next,
    .cgsf-form-wrap .cgsf-btn.cgsf-submit,
    .cgsf-form-wrap .cgsf-field-submit button {
        min-height: 58px !important;
        font-size: 18px !important;
        max-width: 100% !important;
    }

    .cgsf-form-wrap .cgsf-btn.cgsf-prev {
        font-size: 16px !important;
    }

    .cgsf-field.cgsf-field-type-phone .iti--separate-dial-code .iti__selected-flag {
        min-height: 52px;
    }
}

/* =========================================================
   OTP STEP - COMPACT CARD STYLE + AUTO VERIFY UI
========================================================= */

.cgsf-otp-wrap {
    max-width: 840px !important;
    margin: 0 auto !important;
}

.cgsf-otp-shell {
    background: #f4f6f8 !important;
    color: #0c1c3d !important;
    border: 1px solid #e2e7f0 !important;
    border-radius: 22px !important;
    padding: 30px 34px 26px !important;
}

.cgsf-otp-step-title {
    display: none !important;
}

.cgsf-otp-title {
    margin: 0 0 8px !important;
    color: #0b1d3a !important;
    font-size: clamp(24px, 2.2vw, 32px) !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
}

.cgsf-otp-copy {
    margin: 0 0 16px !important;
    color: #1f2d46 !important;
    font-size: clamp(15px, 1.05vw, 18px) !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    max-width: 620px !important;
}

.cgsf-otp-shell .cgsf-alert {
    margin: 0 0 12px !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.cgsf-otp-shell .cgsf-alert-success {
    background: #e5f3e9 !important;
    color: #387a48 !important;
    border-color: #cde7d4 !important;
}

.cgsf-otp-code-block {
    margin-top: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.cgsf-otp-digits {
    display: grid !important;
    grid-template-columns: repeat(var(--cgsf-otp-columns, 4), minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: min(100%, 300px) !important;
    max-width: 300px !important;
    margin: 10px auto 12px !important;
}

.cgsf-otp-digit {
    width: 100% !important;
    min-height: 56px !important;
    border: 2px solid #bcc9dc !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #1f2b3f !important;
    text-align: center !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.cgsf-otp-digit:focus {
    outline: none !important;
    border-color: #0b1d3a !important;
    box-shadow: 0 0 0 3px rgba(11, 29, 58, 0.16) !important;
}

.cgsf-otp-code-sent {
    margin: 6px 0 0 !important;
    color: #38445b !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.cgsf-otp-inline-error {
    margin: 8px 0 0 !important;
    color: #9b1c20 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    min-height: 20px !important;
}

.cgsf-otp-form .cgsf-step-nav {
    margin-top: 16px !important;
    padding-top: 20px !important;
    border-top: 1px solid #d7dde8 !important;
}

.cgsf-otp-nav .cgsf-otp-submit {
    width: 100% !important;
    min-height: 58px !important;
    border-radius: 0 !important;
    background: #0b1d3a !important;
    color: #ffffff !important;
    border: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
}

.cgsf-otp-nav .cgsf-otp-submit:hover {
    background: #08162d !important;
    color: #ffffff !important;
}

.cgsf-otp-form.cgsf-otp-submitting .cgsf-otp-submit {
    opacity: 0.86 !important;
    cursor: wait !important;
}

.cgsf-otp-resend-form {
    margin-top: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
}

.cgsf-otp-resend-copy {
    color: #0b1d3a !important;
    font-size: clamp(16px, 1.35vw, 22px) !important;
    font-weight: 800 !important;
    text-align: center !important;
}

.cgsf-otp-resend-btn {
    appearance: none !important;
    background: #ffffff !important;
    color: #d64c7b !important;
    border: 2px solid #e98aaa !important;
    border-radius: 6px !important;
    padding: 8px 18px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.cgsf-otp-resend-btn:hover {
    background: #fff5f8 !important;
}

.cgsf-otp-resend-btn[disabled] {
    opacity: 0.62 !important;
    cursor: not-allowed !important;
}

.cgsf-otp-resend-note {
    color: #5b6577 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .cgsf-otp-shell {
        border-radius: 18px !important;
        padding: 22px 16px 20px !important;
    }

    .cgsf-otp-title {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }

    .cgsf-otp-copy {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 14px !important;
    }

    .cgsf-otp-shell .cgsf-alert {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }

    .cgsf-otp-digits {
        width: min(100%, 248px) !important;
        max-width: 248px !important;
        gap: 8px !important;
    }

    .cgsf-otp-digit {
        min-height: 50px !important;
        font-size: 22px !important;
        border-radius: 8px !important;
    }

    .cgsf-otp-code-sent {
        font-size: 13px !important;
    }

    .cgsf-otp-nav .cgsf-otp-submit {
        min-height: 54px !important;
        font-size: 17px !important;
    }

    .cgsf-otp-resend-copy {
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    .cgsf-otp-resend-btn {
        font-size: 15px !important;
        padding: 8px 14px !important;
    }

    .cgsf-otp-resend-note {
        font-size: 13px !important;
    }
}

/* Final tooltip icon override */
.cgsf-field-label-row {
    align-items: center !important;
}

.cgsf-desc-wrap {
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
    margin-bottom: 0 !important;
}

.cgsf-desc-trigger {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0 0 0 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
    overflow: visible !important;
}

.cgsf-desc-trigger::before {
    content: none !important;
    display: none !important;
}

.cgsf-desc-trigger .cgsf-desc-trigger-icon {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .cgsf-desc-trigger {
        width: 20px !important;
        min-width: 20px !important;
        height: 20px !important;
        transform: translateY(0) !important;
    }
}

/* Final step-title + OTP compact lock */
.cgsf-step-title,
.cgsf-otp-step-title {
    display: none !important;
}

.cgsf-otp-wrap {
    max-width: 760px !important;
}

.cgsf-otp-shell {
    border-radius: 20px !important;
    padding: 24px 28px 22px !important;
}

.cgsf-otp-title {
    font-size: clamp(22px, 1.9vw, 28px) !important;
    line-height: 1.14 !important;
    margin-bottom: 8px !important;
}

.cgsf-otp-copy {
    max-width: 560px !important;
    font-size: clamp(14px, 0.96vw, 17px) !important;
    margin-bottom: 12px !important;
}

.cgsf-otp-shell .cgsf-alert {
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 13px !important;
    padding: 9px 12px !important;
}

.cgsf-otp-digits {
    width: min(100%, 268px) !important;
    max-width: 268px !important;
    gap: 10px !important;
    margin: 8px auto 10px !important;
}

.cgsf-otp-digit {
    min-height: 52px !important;
    font-size: 24px !important;
    border-radius: 9px !important;
}

.cgsf-otp-code-sent {
    font-size: 13px !important;
    margin-top: 2px !important;
}

.cgsf-otp-form .cgsf-step-nav {
    margin-top: 12px !important;
    padding-top: 18px !important;
}

.cgsf-otp-nav .cgsf-otp-submit {
    min-height: 54px !important;
    font-size: 17px !important;
}

.cgsf-otp-resend-copy {
    font-size: clamp(14px, 1.15vw, 18px) !important;
}

.cgsf-otp-resend-btn {
    font-size: 15px !important;
    padding: 8px 16px !important;
}

.cgsf-otp-resend-note {
    font-size: 13px !important;
}

@media (max-width: 768px) {
    .cgsf-otp-wrap {
        max-width: 100% !important;
    }

    .cgsf-otp-shell {
        border-radius: 16px !important;
        padding: 18px 14px 18px !important;
    }

    .cgsf-otp-title {
        font-size: 18px !important;
        line-height: 1.18 !important;
    }

    .cgsf-otp-copy {
        max-width: 100% !important;
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }

    .cgsf-otp-shell .cgsf-alert {
        max-width: 100% !important;
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    .cgsf-otp-digits {
        width: min(100%, 228px) !important;
        max-width: 228px !important;
        gap: 8px !important;
    }

    .cgsf-otp-digit {
        min-height: 46px !important;
        font-size: 20px !important;
        border-radius: 8px !important;
    }

    .cgsf-otp-code-sent {
        font-size: 12px !important;
    }

    .cgsf-otp-nav .cgsf-otp-submit {
        min-height: 50px !important;
        font-size: 16px !important;
    }

    .cgsf-otp-resend-copy {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .cgsf-otp-resend-btn {
        font-size: 14px !important;
        padding: 7px 12px !important;
    }

    .cgsf-otp-resend-note {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }
}
