@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
    --register-green: #01311f;
    --register-gold: #e6bd29;
    --register-gold-hover: #d5aa17;
    --register-text: #262525;
    --register-muted: #63657e;
    --register-border: #cccccc;
    --register-link: #0077ff;
    --register-error: #b42318;
    --register-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    color: var(--register-text);
    background: var(--register-green);
    font-family: "Roboto", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
a {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.register-shell {
    --field-height: 56px;
    display: flex;
    width: 100%;
    min-height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px 24px;
}

.register-card {
    display: flex;
    width: min(580px, calc(100vw - 32px));
    flex-direction: column;
    align-items: center;
    padding: 47px 55px 42px;
    border-radius: 10px;
    background: var(--register-white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
}

.register-logo {
    display: block;
    width: 294px;
    max-width: 82%;
    height: auto;
}

.register-header {
    width: min(470px, 100%);
    margin-top: 28px;
    text-align: center;
}

.register-header h1 {
    margin: 0;
    color: var(--register-text);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
}

.register-header p {
    margin: 10px 0 0;
    color: #000000;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

.register-form {
    width: min(470px, 100%);
    margin-top: 28px;
}

.register-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.register-field {
    position: relative;
    margin: 0 0 14px;
}

.register-field input,
.register-field select {
    width: 100%;
    height: var(--field-height);
    padding: 0 16px 0 49px;
    border: 1px solid var(--register-border);
    border-radius: 5px;
    outline: none;
    color: var(--register-text);
    background: var(--register-white);
    font-size: 16px;
}

.register-field input[type="password"] {
    padding-right: 48px;
}

.register-password-toggle {
    position: absolute;
    top: calc((var(--field-height) - 24px) / 2);
    right: 15px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    color: var(--register-muted);
    background: transparent;
    cursor: pointer;
}

.register-password-toggle svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.register-password-toggle .eye-closed {
    display: none;
}

.register-password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.register-password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.register-field select {
    padding-right: 40px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2363657e' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

.register-field select.is-empty {
    color: var(--register-muted);
}

.register-field input::placeholder {
    color: var(--register-muted);
    opacity: 1;
}

.register-field input:hover,
.register-field select:hover,
.register-mobile:hover {
    border-color: #9b9cac;
}

.register-field input:focus,
.register-field select:focus,
.register-mobile:focus-within {
    border-color: var(--register-link);
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.14);
}

.register-field input[aria-invalid="true"],
.register-field select[aria-invalid="true"],
.register-mobile[data-invalid="true"] {
    border-color: var(--register-error);
}

.register-icon {
    position: absolute;
    top: calc((var(--field-height) - 24px) / 2);
    left: 15px;
    width: 24px;
    height: 24px;
    color: var(--register-muted);
    pointer-events: none;
}

.register-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.register-mobile {
    display: flex;
    height: var(--field-height);
    overflow: hidden;
    border: 1px solid var(--register-border);
    border-radius: 5px;
    background: var(--register-white);
}

.register-mobile input {
    height: 100%;
    padding: 0 16px 0 12px;
    border: 0;
    box-shadow: none;
}

.register-mobile:focus-within input {
    box-shadow: none;
}

.register-country {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 0 10px 0 14px;
    border-right: 1px solid var(--register-border);
    color: var(--register-text);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.register-flag {
    display: block;
    width: 22px;
    height: 15px;
}

.register-caret {
    width: 16px;
    height: 16px;
    fill: var(--register-muted);
}

.register-other input {
    padding-left: 16px;
}

.register-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 6px;
    color: #000000;
    font-size: 15px;
    line-height: 1.45;
    cursor: pointer;
}

.register-terms input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--register-gold);
}

.register-legal {
    color: var(--register-link);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.field-error {
    display: block;
    margin: 6px 2px 0;
    color: var(--register-error);
    font-size: 13px;
    line-height: 1.3;
}

.field-error[hidden] {
    display: none;
}

.register-email-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    margin: 0 0 14px;
}

.register-email-row .register-field {
    margin: 0;
}

.register-send-otp {
    height: var(--field-height);
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--register-text);
    background: var(--register-gold);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.register-send-otp:hover {
    background: var(--register-gold-hover);
}

.register-send-otp.is-waiting {
    color: var(--register-gold);
    background: var(--register-white);
    border-color: var(--register-gold);
}

.register-send-otp.is-waiting:hover {
    background: #fff8e1;
}

.register-otp {
    margin: 0 0 14px;
    padding: 16px 16px 14px;
    border: 1px solid var(--register-gold);
    border-radius: 8px;
    background: #fff8e1;
}

.register-otp[hidden] {
    display: none;
}

.register-otp-copy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--register-text);
    font-size: 15px;
    line-height: 1.4;
}

.register-otp-copy p {
    margin: 0;
}

.register-otp-phone-icon {
    display: flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--register-muted);
}

.register-otp-phone-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.register-banner {
    margin: 0 0 14px;
}

.register-verified {
    margin: 8px 2px 0;
    color: #157a3a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.register-verified[hidden] {
    display: none;
}

.register-otp-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 0 10px;
    flex-wrap: wrap;
}

.register-otp-digits {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.register-verify-otp {
    height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--register-text);
    background: var(--register-gold);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.register-verify-otp:hover {
    background: var(--register-gold-hover);
}

.register-otp-digit {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--register-border);
    border-radius: 6px;
    background: var(--register-white);
    color: var(--register-text);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.register-otp-digit:focus {
    border-color: var(--register-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 189, 41, 0.22);
}

.register-otp-digit[aria-invalid="true"] {
    border-color: var(--register-error);
}

.register-otp-resend {
    margin: 0;
    color: var(--register-muted);
    font-size: 14px;
    text-align: right;
}

.register-otp-resend button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--register-link);
    font-weight: 700;
    cursor: pointer;
}

.register-otp-resend button[aria-disabled="true"] {
    cursor: default;
    opacity: 0.65;
    pointer-events: none;
}

.register-primary {
    width: 100%;
    height: 57px;
    margin-top: 10px;
    border: 0;
    border-radius: 10px;
    color: var(--register-text);
    background: var(--register-gold);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.register-primary:hover {
    background: var(--register-gold-hover);
}

.register-primary:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.register-primary:disabled:hover {
    background: #e5e7eb;
}

.register-cooldown {
    margin: 10px 0 0;
    color: var(--register-muted);
    font-size: 13px;
    text-align: center;
}

.register-cooldown[hidden] {
    display: none;
}

.register-cooldown span {
    font-weight: 700;
    color: var(--register-text);
}

.register-send-otp:focus-visible,
.register-verify-otp:focus-visible,
.register-password-toggle:focus-visible,
.register-primary:focus-visible,
.register-switch a:focus-visible {
    outline: 3px solid rgba(0, 119, 255, 0.34);
    outline-offset: 3px;
}

.register-switch {
    width: min(470px, 100%);
    margin: 22px 0 0;
    color: #000000;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
}

.register-switch a {
    color: var(--register-link);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.register-assurances {
    display: block;
    width: min(897px, calc(100vw - 48px));
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 700px) {
    .register-shell {
        gap: 24px;
        padding: 24px 16px;
        justify-content: flex-start;
    }

    .register-card {
        width: 100%;
        padding: 38px 28px 32px;
    }

    .register-logo {
        width: 230px;
    }

    .register-header h1 {
        font-size: 28px;
    }

    .register-header p,
    .register-switch {
        font-size: 16px;
    }

    .register-name-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .register-email-row {
        grid-template-columns: 1fr;
    }

    .register-send-otp {
        width: 100%;
    }

    .register-otp-digits {
        justify-content: center;
    }

    .register-otp-row {
        justify-content: center;
    }

    .register-verify-otp {
        width: 100%;
    }

    .register-otp-resend {
        text-align: center;
    }

    .register-primary {
        height: 52px;
        font-size: 18px;
    }

    .register-assurances {
        width: min(520px, calc(100vw - 40px));
    }
}

@media (max-width: 460px) {
    .register-card {
        padding: 32px 20px 28px;
    }

    .register-logo {
        width: 205px;
    }

    .register-assurances {
        display: none;
    }
}

/* ======================================================================
   6-step wizard (Choiice_V3 design)
   ====================================================================== */

.register-leaves {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 260'%3E%3Cg fill='%230a4a30' opacity='0.55'%3E%3Cpath d='M0 260C10 190 40 140 100 110c-40 20-60 55-70 100 30-70 70-100 130-115-50 25-80 65-95 120 35-80 85-115 150-125-60 15-100 55-120 110'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 260'%3E%3Cg fill='%230a4a30' opacity='0.55'%3E%3Cpath d='M260 260c-10-70-40-120-100-150 40 20 60 55 70 100-30-70-70-100-130-115 50 25 80 65 95 120-35-80-85-115-150-125 60 15 100 55 120 110'/%3E%3C/g%3E%3C/svg%3E");
    background-position: left bottom, right bottom;
    background-size: 300px 300px, 300px 300px;
}

.register-shell {
    position: relative;
}

.register-card {
    position: relative;
    z-index: 1;
}

/* Step counter, top-right of the viewport */
.register-step-count {
    position: fixed;
    top: 22px;
    right: 26px;
    z-index: 2;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* Stepper */
.register-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: min(520px, 100%);
    margin: 22px 0 6px;
}

.register-stepper-node {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.register-stepper-node::before {
    content: "";
    position: absolute;
    top: 15px;
    left: -50%;
    z-index: 0;
    width: 100%;
    height: 2px;
    background: var(--register-border);
}

.register-stepper-node:first-child::before {
    content: none;
}

.register-stepper-node.is-done::before {
    background: #2cb72c;
}

.register-stepper-circle {
    position: relative;
    z-index: 1;
    display: flex;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--register-border);
    border-radius: 50%;
    background: var(--register-white);
    color: var(--register-muted);
    font-size: 13px;
    font-weight: 700;
}

.register-stepper-label {
    color: var(--register-muted);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.25;
}

.register-stepper-node.is-active .register-stepper-circle {
    border-color: var(--register-gold);
    background: var(--register-gold);
    color: var(--register-text);
}

.register-stepper-node.is-active .register-stepper-label {
    color: var(--register-text);
}

.register-stepper-node.is-done .register-stepper-circle {
    border-color: #2cb72c;
    background: #2cb72c;
    color: var(--register-white);
    font-size: 0;
}

.register-stepper-node.is-done .register-stepper-circle::after {
    content: "\2713";
    font-size: 14px;
}

.register-stepper-node.is-done .register-stepper-label {
    color: #157a3a;
}

.register-stepper-node.is-clickable {
    cursor: pointer;
}

/* Step panels */
.register-step[hidden] {
    display: none;
}

.register-step[data-step="2"],
.register-step[data-step="3"],
.register-step[data-step="4"],
.register-step[data-step="5"],
.register-step[data-step="6"] {
    text-align: center;
}

.register-step-header,
.register-step-header-center {
    width: min(470px, 100%);
    margin: 4px auto 22px;
    text-align: center;
}

.register-step-header h1,
.register-step-header-center h1 {
    margin: 0;
    color: var(--register-text);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.register-step-header p,
.register-step-header-center p {
    margin: 10px 0 0;
    color: var(--register-muted);
    font-size: 15px;
    line-height: 1.45;
}

.register-step[data-step="1"] .register-step-header {
    margin-top: 0;
}

.register-step[data-step="1"] .register-step-header h1 {
    font-size: 30px;
}

/* Secondary "Go Back" link button */
.register-link-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border: 0;
    background: none;
    color: var(--register-link);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.register-link-btn:hover {
    text-decoration: underline;
}

/* Centered OTP layout for step 2 */
.register-otp-digits-center {
    justify-content: center;
    margin: 0 0 6px;
}

.register-otp-resend-center {
    margin: 4px 0 18px;
    text-align: center;
}

#otp-target {
    color: var(--register-text);
}

/* Tile grids (About You / Your Status / Your Purpose / Discover CHOiiCE) */
.register-tiles {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
}

.register-tiles-4 {
    grid-template-columns: repeat(4, 1fr);
}

.register-tiles-3 {
    grid-template-columns: repeat(3, 1fr);
}

.register-tile {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1px solid var(--register-border);
    border-radius: 8px;
    background: var(--register-white);
    color: var(--register-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.register-tile .material-symbols-outlined {
    font-size: 26px;
    color: var(--register-muted);
}

.register-tile:hover {
    border-color: var(--register-gold);
}

.register-tile.is-selected {
    border-color: var(--register-gold);
    background: #fff3d6;
}

.register-tile.is-selected .material-symbols-outlined {
    color: var(--register-gold-hover);
}

.register-tile-wide {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 76px;
    padding: 14px;
    text-align: left;
}

.register-tile-wide .material-symbols-outlined {
    flex: 0 0 auto;
}

.register-tile-other {
    margin: 0 0 14px;
}

.register-tile-other .register-tile {
    width: 100%;
}

.register-tile-other-toggle {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 56px;
    padding: 0 16px;
}

.register-tile-other input {
    width: 100%;
    height: var(--field-height);
    margin-top: 10px;
    padding: 0 16px;
    border: 1px solid var(--register-border);
    border-radius: 5px;
    font-size: 16px;
}

/* Success panel */
.register-success {
    display: flex;
    width: min(420px, 100%);
    flex-direction: column;
    align-items: center;
    padding: 20px 0 4px;
    text-align: center;
}

.register-success[hidden] {
    display: none;
}

.register-success-icon {
    display: flex;
    width: 84px;
    height: 84px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #2cb72c;
    box-shadow: 0 0 0 10px rgba(44, 183, 44, 0.12), 0 0 0 20px rgba(44, 183, 44, 0.06);
}

.register-success-icon .material-symbols-outlined {
    font-size: 44px;
    color: var(--register-white);
    font-variation-settings: "wght" 700;
}

.register-success h1 {
    margin: 0;
    color: var(--register-text);
    font-size: 28px;
    font-weight: 700;
}

.register-success p {
    margin: 10px 0 0;
    color: var(--register-muted);
    font-size: 16px;
    line-height: 1.4;
}

.register-success-sub {
    margin-top: 4px !important;
    font-weight: 600;
}

.register-success .register-primary {
    margin-top: 26px;
}

@media (max-width: 700px) {
    .register-step-count {
        top: 12px;
        right: 16px;
        font-size: 12px;
    }

    .register-stepper-label {
        display: none;
    }

    .register-tiles-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .register-tiles-3 {
        grid-template-columns: 1fr;
    }

    .register-tile-wide {
        min-height: 64px;
    }
}

