/* =========================================================
   RAZ CLOUD — NEW CUSTOMER REGISTRATION
   Source-first form experience
   ========================================================= */

.nc-main {
    padding-top: 24px;
    padding-bottom: 50px;
}

.nc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nc-kicker {
    display: block;
    margin-bottom: 6px;

    color: var(--accent);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.nc-header h1 {
    margin: 0;

    color: var(--text);

    font-size: 25px;
}

.nc-header p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 11px;
}

.nc-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nc-back {
    height: 35px;

    display: inline-flex;
    align-items: center;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface);

    color: #8fa2b7;

    text-decoration: none;

    font-size: 9px;
    font-weight: 700;

    transition: .18s ease;
}

.nc-back:hover {
    color: white;

    background: rgba(255,255,255,.05);
}


/* =========================================================
   STEPPER
   ========================================================= */

.nc-stepper {
    display: flex;
    align-items: center;

    margin-top: 25px;
    padding: 15px 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);
}

.nc-step {
    display: flex;
    align-items: center;
    gap: 9px;

    flex: 0 0 auto;

    border: 0;
    outline: 0;

    padding: 0;

    background: transparent;

    color: #687d92;

    cursor: pointer;

    text-align: left;
}

.nc-step > span {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    flex: 0 0 31px;

    border: 1px solid rgba(148,163,184,.20);
    border-radius: 50%;

    background: rgba(255,255,255,.025);

    color: #667b91;

    font-size: 9px;
    font-weight: 800;

    transition: .2s ease;
}

.nc-step strong {
    display: block;

    color: #8597aa;

    font-size: 9px;
    font-weight: 700;

    transition: .2s ease;
}

.nc-step small {
    display: block;

    margin-top: 2px;

    color: #4c6075;

    font-size: 7px;
}

.nc-step.active > span {
    border-color: rgba(32,214,199,.35);

    background: rgba(32,214,199,.12);

    color: var(--accent);

    box-shadow:
        0 0 0 4px rgba(32,214,199,.035);
}

.nc-step.active strong {
    color: var(--text);
}

.nc-step.done > span {
    border-color: rgba(53,208,127,.35);

    background: rgba(53,208,127,.12);

    color: var(--good);
}

.nc-step.done > span::before {
    content: "✓";
}

.nc-step.done > span {
    font-size: 0;
}

.nc-step.done > span::before {
    font-size: 10px;
}

.nc-step-line {
    height: 1px;

    flex: 1;

    min-width: 35px;

    margin: 0 13px;

    background:
        linear-gradient(
            90deg,
            rgba(80,99,120,.20),
            rgba(80,99,120,.45),
            rgba(80,99,120,.20)
        );
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.nc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 15px;

    margin-top: 15px;
}

.nc-content {
    min-width: 0;
}

.nc-section {
    display: none;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);

    overflow: hidden;

    animation: ncSectionIn .24s ease;
}

.nc-section.active {
    display: block;
}

@keyframes ncSectionIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nc-section-header {
    min-height: 73px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 15px 18px;

    border-bottom: 1px solid var(--border);

    background:
        linear-gradient(
            90deg,
            rgba(32,214,199,.035),
            transparent 45%
        );
}

.nc-section-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(32,214,199,.22);
    border-radius: 10px;

    background: rgba(32,214,199,.07);

    color: var(--accent);

    font-size: 8px;
    font-weight: 800;
}

.nc-section-header h2 {
    margin: 0;

    color: var(--text);

    font-size: 13px;
}

.nc-section-header p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 8px;
}


/* =========================================================
   FORM
   ========================================================= */

.nc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;

    padding: 20px 18px 22px;
}

.nc-field {
    display: block;
}

.nc-field.full {
    grid-column: 1 / -1;
}

.nc-field > span {
    display: block;

    margin: 0 0 6px 2px;

    color: #798da2;

    font-size: 8px;
    font-weight: 700;
}

.nc-field input,
.nc-field select,
.nc-field textarea {
    width: 100%;

    border: 1px solid rgba(255,255,255,.085);
    outline: none;

    border-radius: 9px;

    background: rgba(255,255,255,.024);

    color: #c7d3df;

    font-family: inherit;
    font-size: 9px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.nc-field input,
.nc-field select {
    height: 38px;

    padding: 0 10px;
}

.nc-field textarea {
    padding: 10px;

    resize: vertical;
}

.nc-field input::placeholder,
.nc-field textarea::placeholder {
    color: #40546a;
}

.nc-field input:focus,
.nc-field select:focus,
.nc-field textarea:focus {
    border-color: rgba(32,214,199,.35);

    background: rgba(32,214,199,.025);

    box-shadow:
        0 0 0 3px rgba(32,214,199,.045);
}

.nc-field.invalid input,
.nc-field.invalid select,
.nc-field.invalid textarea {
    border-color: rgba(239,68,68,.45);

    box-shadow:
        0 0 0 3px rgba(239,68,68,.04);
}


/* =========================================================
   PHONE
   ========================================================= */

.nc-phone {
    height: 38px;

    display: flex;

    border: 1px solid rgba(255,255,255,.085);
    border-radius: 9px;

    background: rgba(255,255,255,.024);

    overflow: hidden;

    transition: .18s ease;
}

.nc-phone:focus-within {
    border-color: rgba(32,214,199,.35);

    box-shadow:
        0 0 0 3px rgba(32,214,199,.045);
}

.nc-phone b {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    padding: 0 10px;

    border-right: 1px solid var(--border);

    color: var(--accent);

    font-size: 8px;
    font-weight: 800;
}

.nc-phone input {
    height: 100%;

    border: 0 !important;
    border-radius: 0;

    background: transparent;

    box-shadow: none !important;
}


/* =========================================================
   SERVICE TYPE
   ========================================================= */

.nc-service-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;

    padding: 18px 18px 0;
}

.nc-service-option {
    min-height: 64px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 12px 13px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: rgba(255,255,255,.018);

    color: #8497aa;

    cursor: pointer;

    text-align: left;

    transition: .18s ease;
}

.nc-service-option:hover {
    background: rgba(255,255,255,.035);
}

.nc-service-option.active {
    border-color: rgba(32,214,199,.30);

    background: rgba(32,214,199,.07);

    box-shadow:
        inset 0 0 25px rgba(32,214,199,.018);
}

.service-radio {
    width: 15px;
    height: 15px;

    flex: 0 0 15px;

    border: 1px solid #50657a;
    border-radius: 50%;

    position: relative;
}

.nc-service-option.active .service-radio {
    border-color: var(--accent);
}

.nc-service-option.active .service-radio::after {
    content: "";

    width: 7px;
    height: 7px;

    position: absolute;
    top: 3px;
    left: 3px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 7px rgba(32,214,199,.45);
}

.nc-service-option strong {
    display: block;

    color: #9fb0c1;

    font-size: 10px;
}

.nc-service-option.active strong {
    color: var(--text);
}

.nc-service-option small {
    display: block;

    margin-top: 3px;

    color: #50647a;

    font-size: 7px;
}

.service-fields {
    padding-top: 16px;
}


/* =========================================================
   INLINE FIELDS
   ========================================================= */

.nc-inline-fields {
    display: grid;
    grid-template-columns: 1fr 110px;

    border-radius: 9px;

    overflow: hidden;
}

.nc-inline-fields input {
    border-radius: 9px 0 0 9px;
}

.nc-inline-fields select {
    border-left: 0;

    border-radius: 0 9px 9px 0;
}


/* =========================================================
   TOGGLE
   ========================================================= */

.nc-toggle-field {
    min-height: 56px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 11px 13px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: rgba(255,255,255,.018);
}

.nc-toggle-field strong {
    display: block;

    color: #9aabbc;

    font-size: 9px;
}

.nc-toggle-field small {
    display: block;

    margin-top: 3px;

    color: #53677d;

    font-size: 7px;
}

.nc-toggle-field input {
    width: 34px;
    height: 18px;

    flex: 0 0 auto;

    accent-color: var(--accent);

    cursor: pointer;
}


/* =========================================================
   SECTION ACTIONS
   ========================================================= */

.nc-section-actions {
    min-height: 63px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    padding: 11px 18px;

    border-top: 1px solid var(--border);

    background: rgba(255,255,255,.012);
}

.nc-validation {
    margin-right: auto;

    color: #f87171;

    font-size: 8px;
}

.nc-primary,
.nc-secondary {
    min-height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 13px;

    border-radius: 9px;

    cursor: pointer;

    font-size: 8px;
    font-weight: 800;

    transition:
        transform .16s ease,
        background .16s ease,
        border-color .16s ease;
}

.nc-primary {
    border: 1px solid rgba(32,214,199,.30);

    background:
        linear-gradient(
            135deg,
            #20d6c7,
            #13b5a9
        );

    color: #031c1a;

    box-shadow:
        0 8px 20px rgba(32,214,199,.08);
}

.nc-primary:hover {
    transform: translateY(-1px);
}

.nc-primary.final {
    min-width: 145px;

    background:
        linear-gradient(
            135deg,
            #35d07f,
            #18b96b
        );
}

.nc-secondary {
    border: 1px solid var(--border);

    background: rgba(255,255,255,.025);

    color: #899bae;
}

.nc-secondary:hover {
    background: rgba(255,255,255,.05);

    color: white;
}


/* =========================================================
   BILLING SUMMARY
   ========================================================= */

.nc-billing-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    margin: 0 18px 20px;
}

.nc-billing-summary > div {
    min-height: 71px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(32,214,199,.035),
            rgba(255,255,255,.012)
        );
}

.nc-billing-summary span {
    color: #61758b;

    font-size: 7px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .6px;
}

.nc-billing-summary strong {
    display: block;

    margin-top: 6px;

    color: var(--text);

    font-size: 16px;
}

.nc-billing-summary > div:last-child strong {
    color: var(--warning);
}


/* =========================================================
   SIDE SUMMARY
   ========================================================= */

.nc-summary {
    align-self: start;

    position: sticky;
    top: 20px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);

    overflow: hidden;
}

.nc-summary-head {
    padding: 15px;

    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(32,214,199,.10),
            transparent 48%
        );
}

.nc-summary-head > span {
    color: var(--accent);

    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1px;
}

.nc-summary-head h3 {
    margin: 5px 0 0;

    color: var(--text);

    font-size: 13px;
}

.nc-summary-list {
    padding: 6px 14px;
}

.nc-summary-list > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;

    padding: 10px 0;

    border-bottom: 1px solid rgba(255,255,255,.045);
}

.nc-summary-list > div:last-child {
    border-bottom: 0;
}

.nc-summary-list span {
    color: #61758a;

    font-size: 8px;
}

.nc-summary-list strong {
    max-width: 150px;

    color: #a8b8c8;

    font-size: 8px;
    font-weight: 700;

    text-align: right;

    overflow-wrap: anywhere;
}

.nc-summary-note {
    margin: 7px 13px 13px;
    padding: 10px;

    border: 1px solid rgba(255,184,77,.14);
    border-radius: 9px;

    background: rgba(255,184,77,.035);

    color: #8e8068;

    font-size: 7px;
    line-height: 1.6;
}


/* =========================================================
   TOAST
   ========================================================= */

.nc-toast {
    min-width: 220px;
    max-width: min(430px, 90vw);

    position: fixed;
    left: 50%;
    bottom: 25px;

    z-index: 150;

    padding: 11px 14px;

    border: 1px solid rgba(32,214,199,.25);
    border-radius: 10px;

    background: #0b1a28;

    color: #9db1c4;

    text-align: center;

    font-size: 9px;

    opacity: 0;
    pointer-events: none;

    transform:
        translate(-50%, 10px);

    box-shadow:
        0 15px 45px rgba(0,0,0,.35);

    transition: .2s ease;
}

.nc-toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}

.nc-toast.error {
    border-color: rgba(239,68,68,.30);

    color: #fca5a5;
}

.nc-toast.success {
    border-color: rgba(53,208,127,.30);

    color: #86efac;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .nc-layout {
        grid-template-columns: 1fr;
    }

    .nc-summary {
        position: static;

        order: -1;
    }

    .nc-summary-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0 15px;
    }

    .nc-summary-list > div {
        display: block;
    }

    .nc-summary-list strong {
        display: block;

        margin-top: 4px;

        max-width: none;

        text-align: left;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .nc-header {
        align-items: stretch;
        flex-direction: column;
    }

    .nc-header-actions {
        justify-content: space-between;
    }

    .nc-stepper {
        overflow-x: auto;

        padding: 12px;
    }

    .nc-step {
        min-width: 105px;
    }

    .nc-step small {
        display: none;
    }

    .nc-step-line {
        min-width: 18px;

        margin: 0 6px;
    }

    .nc-form-grid {
        grid-template-columns: 1fr;
    }

    .nc-field.full {
        grid-column: auto;
    }

    .nc-service-selector {
        grid-template-columns: 1fr;
    }

    .nc-summary-list {
        grid-template-columns: 1fr 1fr;
    }

    .nc-section-actions {
        flex-wrap: wrap;
    }

    .nc-validation {
        width: 100%;

        margin-right: 0;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .user-menu {
        display: none;
    }

    .nc-header h1 {
        font-size: 21px;
    }

    .nc-summary-list {
        grid-template-columns: 1fr;
    }

    .nc-billing-summary {
        grid-template-columns: 1fr;
    }

    .nc-section-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .nc-primary,
    .nc-secondary {
        width: 100%;
    }

    .nc-inline-fields {
        grid-template-columns: 1fr 90px;
    }

}
