*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: oklch(60.6% 0.25 292.717);
    --bg-alt: #f5f9fc;
    --text: #1a1a1a;
    --text-secondary: #787878;
    --border: #e8e8e8;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --gray-50: #fafafa;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Geist', sans-serif;
    color: var(--text);
    background: white;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.wizard-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 92vh;
    gap: 1px;
    background-color: var(--border);
}

.wizard-left {
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 4.25rem;
    position: relative;
}

.form-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0 0 0;
}

#step-5 {
    text-align: center;
    align-items: center;
}

.step {
    display: none;
    animation: fadeSlideIn 0.35s ease forwards;
}

.step.active {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 26px;
    margin-bottom: 6px;
    color: var(--text);
    letter-spacing: -0.04em;
}

.step-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ===== FORM FIELDS ===== */
.field-group {
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.field-group input,
.field-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text);
    background: white;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.field-group input::placeholder {
    color: var(--text-secondary);
}

.field-group input:focus,
.field-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(119, 76, 254, .06);
}

.field-group.error input,
.field-group.error select {
    border-color: #ef4444;
}

.field-group .error-msg {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    display: none;
}

.field-group.error .error-msg {
    display: block;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color var(--transition);
}

.password-toggle:hover {
    color: var(--gray-700);
}

.password-hint {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 6px;
}

/* -- Email inline step -- */
.email-input-row {
    display: flex;
    gap: 12px;
}

.email-input-row .field-group {
    flex: 1;
    margin-bottom: 0;
}

.email-input-row .btn-continue-inline {
    flex-shrink: 0;
    align-self: flex-start;
}

/* ===== RADIO CARDS ===== */
.radio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.radio-card {
    position: relative;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
    user-select: none;
}

.radio-card:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.radio-card.selected {
    border-color: var(--primary);
    background: var(--gray-50);
    color: var(--primary);
    box-shadow: 0 0 0 1px rgba(119, 76, 254, .06);
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-icon {
    font-size: 26px;
    margin-bottom: 6px;
}

.radio-card-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--gray-200);
    color: var(--gray-400);
    cursor: not-allowed;
}

.btn-primary.loading {
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-continue-inline {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid var(--primary)
}

.btn-continue-inline:hover {
    transform: translateY(-2px);
}

.btn-continue-inline:disabled {
    background: var(--gray-200);
    color: var(--gray-400);
    cursor: not-allowed;
    border-color: var(--gray-200);
}

/* Back button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    transition: color var(--transition);
    margin-top: 20px;
    align-self: flex-start;
}

.btn-back:hover {
    color: black;
}

.btn-back svg {
    width: 16px;
    height: 16px;
}

/* ===== PROGRESS DOTS ===== */
.progress-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 16px 0 8px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-dot.active {
    width: 28px;
    background: black;
}

.progress-dot.completed {
    background: var(--gray-400);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--gray-300);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition);
}

.checkbox-group input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-group label {
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
}

.checkbox-group label a {
    color: black;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.success-text {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 28px;
    max-width: 450px;
    line-height: 1.6;
}

.logo img {
    height: 28px;
    width: auto;
}

.wizard-right {
    background-color: var(--bg-alt);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-image: url('https://i0.wp.com/landing.acadiapos.com/assets/graphics/gradient-dots-pattern.png?ssl=1'), radial-gradient(circle at 80% 10%, rgba(119, 76, 254, 0.15) 0%, transparent 40%), radial-gradient(circle at 10% 70%, rgba(56, 189, 248, 0.12) 0%, transparent 40%);
    background-position: bottom center, top right, bottom left;
    background-size: contain, 100% 100%, 100% 100%;
    background-repeat: no-repeat;
}

.wizard-right .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 500px;
}

.wizard-right .content h1 {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--text);
    padding-bottom: 2.25rem;
}

.wizard-right .content h1 span {
    color: var(--primary);
}

.wizard-right .content ul {
    list-style: none;
    padding-left: .25rem;
}

.wizard-right .content ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #18181a;
    padding-bottom: .75rem;
    font-weight: 500;
}

.wizard-right .content ul li svg {
    width: 16px;
    height: 16px;
    background: var(--primary);
    color: white;
    border-radius: 100%;
    padding: 2.5px;
}

.customersCarousal {
    padding: 1rem 0;
    width: 100%;
}

.customersCarousal p {
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
    padding-bottom: 1rem;
}

.wizard-right .customersCarousal img.splide__slide {
    height: 72px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .75;
    transition: all 0.3s ease;
}

.wizard-right .customersCarousal img.splide__slide:hover {
    filter: grayscale(0);
    opacity: 1;
}

footer {
    padding: 1.25rem 2.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

footer p {
    color: var(--text-secondary);
    font-size: 12px;
}

footer ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

footer ul li a {
    color: var(--text-secondary);
    transition: color var(--transition);
    text-wrap: nowrap;
}

footer ul li a:hover {
    color: var(--primary);
}

.demo-sk {
    display: flex;
    height: 20vh;
    flex-direction: column;
    align-items: center;
}

.demo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: auto;
    transition: all var(--transition);
    width: max-content;
    background-color: #fafafa;
    box-shadow: 0 2px 4px 0 #00000005;
}

.demo-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.demo-card-avatars {
    display: flex;
}

.demo-card-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: -8px;
}

.demo-card-text h1 {
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    line-height: 1.5;
}

.demo-card-text p {
    color: var(--text-secondary);
    line-height: 1.1;
}

.demo-card-arrow {
    margin-left: auto;
    color: var(--gray-400);
}

.demo-card-arrow svg {
    width: 18px;
    height: 18px;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* Toast container */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    width: 320px;
    color: #ef4444;
    border-radius: 14px;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 0 0.5px rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    animation: slideIn 0.4s ease forwards;
}

/* Icon */
.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Text */
.toast-title {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
}

.toast-message {
    font-size: 13px;
    opacity: 0.8;
    color: var(--text)
}

/* Animation */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional fade-out */
.toast.hide {
    animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/*Mobile only CSS*/
@media only screen and (max-width: 768px) {
    .wizard-container {
        display: flex;
        flex-direction: column;
    }

    .wizard-left {
        padding: 2rem 16px;
    }

    .wizard-right,
    .demo-sk {
        align-items: flex-start;
    }

    .wizard-right .content {
        max-width: unset;
        padding: 24px;
    }

    .wizard-right .content h1 {
        font-size: 2.25rem;
    }

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

    .email-input-row {
        flex-direction: column;
    }

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

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

    footer {
        flex-direction: column;
    }

    footer ul {
        gap: 10px;
        justify-content: center;
    }

    footer ul {
        text-align: center;
    }

    .demo-sk {
        height: 16vh;
    }

    .demo-card {
        width: 100%;
    }

    .demo-card-avatars img {
        width: 24px;
        height: 24px;
    }
}