/**
 * File: /assets/css/registrazione.css
 * Descrizione: stile condiviso per tutta la procedura di registrazione CheMangi.
 */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    scroll-padding-top: 100px;
    color: #132033;
    background:
        radial-gradient(circle at top left, rgba(11, 99, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
    min-height: 100vh;
}

a {
    color: inherit;
}

.cm-nav-floating {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(20, 28, 40, 0.72) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
    padding-top: 10px;
    padding-bottom: 10px;
}

.cm-nav-floating.cm-nav-scrolled {
    background: rgba(12, 18, 28, 0.90) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.cm-brand-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    transition: transform .25s ease, opacity .25s ease;
}

.navbar-brand:hover .cm-brand-logo {
    transform: translateY(-1px);
    opacity: .96;
}

.cm-reg-nav-title {
    color: rgba(255,255,255,0.92);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    margin-left: auto;
}

.cm-reg-page {
    width: 100%;
    padding: 120px 18px 70px;
}

.cm-reg-page-centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.cm-reg-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.cm-reg-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: stretch;
}

.cm-reg-grid-equal {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: stretch;
}

.cm-reg-copy {
    padding: 24px 10px 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kicker {
    display: inline-block;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(11, 99, 255, 0.10);
    color: #0b63ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    margin: 0 0 16px;
    font-size: 54px;
    line-height: 0.98;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #132033;
    max-width: 760px;
}

.hero-sub {
    margin: 0 0 24px;
    font-size: 19px;
    line-height: 1.75;
    color: #5a6a7f;
    max-width: 760px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(19, 32, 51, 0.08);
    color: #425166;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.05);
}

.hero-list,
.hero-points {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-list li,
.hero-points li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #425166;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 700;
}

.hero-list li::before,
.hero-points li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 26px;
    line-height: 1;
    color: #0b63ff;
}

.hero-panel {
    margin-top: 16px;
    background: #fff;
    border: 1px solid rgba(19, 32, 51, 0.06);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.hero-panel-title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    color: #132033;
}

.hero-panel-copy {
    margin: 0;
    color: #5a6a7f;
    line-height: 1.7;
    font-size: 16px;
}

.box,
.cm-reg-panel {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(19, 32, 51, 0.06);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
    padding: 32px;
}

.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.step {
    color: #0b63ff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .08em;
}

.step-total {
    color: #5a6a7f;
    font-size: 14px;
    font-weight: 700;
}

.progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.progress-item {
    position: relative;
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: #dfe7f3;
}

.progress-item.done,
.progress-item.active {
    background: rgba(11, 99, 255, 0.16);
}

.progress-item.done::after,
.progress-item.active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0b63ff 0%, #4b98ff 100%);
}

h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 36px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #132033;
}

.sub {
    color: #5a6a7f;
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 17px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
    color: #132033;
    font-size: 15px;
}

input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(19, 32, 51, 0.10);
    border-radius: 16px;
    font-size: 15px;
    outline: none;
    color: #132033;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

input:focus {
    border-color: rgba(11, 99, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(11, 99, 255, 0.10);
}

.hint {
    margin-top: 7px;
    color: #5a6a7f;
    font-size: 13px;
    line-height: 1.5;
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn,
.btn-secondary,
.btn-link,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all .18s ease;
}

.btn {
    border: 0;
    background: #0b63ff;
    color: #fff;
    padding: 14px 22px;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(11, 99, 255, 0.18);
}

.btn:hover {
    background: #1150bf;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    border: 0;
    background: #132033;
    color: #fff;
    padding: 14px 22px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #0f1a2a;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    border: 1px solid rgba(11, 99, 255, 0.18);
    background: #fff;
    color: #0b63ff;
    padding: 14px 22px;
}

.btn-outline:hover {
    background: rgba(11, 99, 255, 0.05);
    color: #0b63ff;
    text-decoration: none;
}

.btn-link {
    color: #425166;
    padding: 0 4px;
    min-height: auto;
}

.btn-link:hover {
    color: #0b63ff;
    text-decoration: none;
}

.errors,
.success,
.demo,
.login-box {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.errors {
    background: #ffe7e7;
    color: #9b1c1c;
}

.success {
    background: #e8fff1;
    color: #0f6b35;
}

.demo {
    margin-top: 18px;
    background: #fff7e8;
    color: #8a5a00;
    font-size: 14px;
    line-height: 1.5;
}

.login-box {
    background: #eef5ff;
    color: #1d4f91;
    line-height: 1.6;
}

.login-box a {
    color: #0f3f7a;
    font-weight: 800;
    text-decoration: none;
}

.login-box a:hover {
    text-decoration: underline;
}

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

.phone {
    background: #f6f9ff;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-weight: 800;
    border: 1px solid #dfe7f3;
    color: #132033;
}

.url-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.suffix {
    background: #f6f9ff;
    border: 1px solid #dfe7f3;
    border-radius: 16px;
    padding: 15px 16px;
    font-weight: 800;
    color: #132033;
    white-space: nowrap;
}

.url-status {
    display: none;
    margin-top: 8px;
    padding: 5px 5px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.url-status.ok {
    display: block;
    background: #e8fff1;
    color: #0f6b35;
}

.url-status.ko {
    display: block;
    background: #ffe7e7;
    color: #9b1c1c;
}

.ok {
    /*width: 70px;
    height: 70px; */
    line-height: 70px;
    text-align: center;
    border-radius: 10px;
    background: #e8fff1;
    color: #0f6b35;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 18px;
}

.resume {
    margin-top: 24px;
    background: #f7f8fb;
    border-radius: 18px;
    padding: 18px;
}

.resume-row {
    padding: 8px 0;
    border-bottom: 1px solid #e4e8f1;
}

.resume-row:last-child {
    border-bottom: 0;
}

.label {
    display: inline-block;
    min-width: 210px;
    font-weight: bold;
}

.link-shop {
    display: inline-block;
    margin-top: 18px;
    background: #1f2937;
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: bold;
}

.link-shop:hover {
    color: #fff;
    text-decoration: none;
    opacity: .95;
}

.mini {
    margin-top: 16px;
    color: #666;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .cm-reg-grid,
    .cm-reg-grid-equal {
        grid-template-columns: 1fr;
    }

    .cm-reg-copy {
        padding-right: 0;
    }

    .hero-title {
        font-size: 44px;
    }
}

@media (max-width: 991.98px) {
    .cm-reg-page {
        padding-top: 105px;
    }
}

@media (max-width: 767.98px) {
    .cm-reg-nav-title {
        font-size: 14px;
    }

    .cm-reg-page {
        padding: 105px 16px 50px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-sub {
        font-size: 17px;
    }

    .box,
    .cm-reg-panel,
    .hero-panel {
        padding: 24px;
        border-radius: 24px;
    }

    h1 {
        font-size: 30px;
    }

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

    .url-wrap {
        grid-template-columns: 1fr;
    }

    .suffix {
        text-align: center;
    }

    .label {
        display: block;
        min-width: 0;
        margin-bottom: 4px;
    }
}