/* ═══════════════════════════════════════════════════════════════
   BASVURU - MULTI-STEP APPLICATION WIZARD STYLES
   Banking-Grade Onboarding Form Design
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   WIZARD SECTION
═══════════════════════════════════════════════════════════════ */
.wizard-section {
    position: relative;
    min-height: calc(100vh - var(--topbar-height) - var(--header-height));
    padding: 60px 0;
    display: flex;
    align-items: center;
}

.wizard-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #020b18 0%, #05142a 50%, #0a1f3d 100%);
    z-index: 0;
}

.wizard-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(9, 118, 212, 0.1) 0%, transparent 50%);
}

.wizard-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(9, 118, 212, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   WIZARD CONTAINER (GLASS CARD)
═══════════════════════════════════════════════════════════════ */
.wizard-container {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 48px;
    background: rgba(10, 31, 61, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 1;
}

/* Security Badge */
.security-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #22c55e;
}

.security-badge svg {
    width: 14px;
    height: 14px;
}

/* Wizard Header */
.wizard-header {
    text-align: center;
    margin-bottom: 40px;
}

.wizard-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.wizard-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   PROGRESS STEPPER
═══════════════════════════════════════════════════════════════ */
.progress-stepper {
    position: relative;
    margin-bottom: 48px;
}

.stepper-track {
    position: absolute;
    top: 20px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    z-index: 0;
}

.stepper-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-color);
}

.stepper-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.stepper-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.node-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 20, 42, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.node-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.node-check {
    display: none;
    width: 18px;
    height: 18px;
    stroke: var(--text-white);
}

.node-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* Active Node */
.stepper-node.active .node-circle {
    border-color: var(--accent-color);
    background: rgba(9, 118, 212, 0.15);
    box-shadow: 0 0 20px rgba(9, 118, 212, 0.4);
}

.stepper-node.active .node-number {
    color: var(--accent-color);
}

.stepper-node.active .node-label {
    color: var(--text-white);
}

/* Completed Node */
.stepper-node.completed .node-circle {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

.stepper-node.completed .node-number {
    display: none;
}

.stepper-node.completed .node-check {
    display: block;
}

.stepper-node.completed .node-label {
    color: var(--accent-color);
}

/* ═══════════════════════════════════════════════════════════════
   STEPS CONTAINER
═══════════════════════════════════════════════════════════════ */
.steps-container {
    position: relative;
    min-height: 380px;
}

.wizard-step {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.wizard-step.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.wizard-step.exit-left {
    transform: translateX(-30px);
}

.step-content {
    padding-bottom: 20px;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════════
   FORM INPUTS
═══════════════════════════════════════════════════════════════ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 1;
}

.input-icon svg {
    width: 100%;
    height: 100%;
}

.form-input {
    width: 100%;
    padding: 18px 16px 18px 48px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* Added box-sizing */
}

.form-input::placeholder {
    color: transparent;
}

.form-input:focus {
    border-color: var(--accent-color);
    background: rgba(9, 118, 212, 0.05);
    box-shadow: 0 0 0 3px rgba(9, 118, 212, 0.15);
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: -8px;
    left: 44px;
    font-size: 0.75rem;
    padding: 0 8px;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 31, 61, 0.9) 50%);
    color: var(--accent-color);
}

.form-input:focus~.input-icon {
    color: var(--accent-color);
}

.form-label {
    position: absolute;
    top: 50%;
    left: 48px;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-label--select {
    top: -8px;
    left: 44px;
    font-size: 0.75rem;
    padding: 0 8px;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 31, 61, 0.9) 50%);
    color: var(--accent-color);
    transform: translateY(0);
}

/* Textarea */
.form-textarea {
    min-height: 100px;
    resize: vertical;
    padding-top: 16px;
}

.form-textarea~.form-label {
    top: 16px;
    transform: translateY(0);
}

.form-textarea:focus~.form-label,
.form-textarea:not(:placeholder-shown)~.form-label {
    top: -8px;
}

/* Select */
.form-select {
    cursor: pointer;
    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' fill='none' stroke='%238A9BB5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
}

/* ═══════════════════════════════════════════════════════════════
   PACKAGE SELECTION CARDS
═══════════════════════════════════════════════════════════════ */
.selection-group {
    margin-bottom: 28px;
}

.selection-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.package-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.package-cards--duration {
    grid-template-columns: repeat(3, 1fr);
}

.package-card {
    position: relative;
    cursor: pointer;
}

.package-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.package-card .card-content {
    position: relative;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.package-card:hover .card-content {
    background: rgba(9, 118, 212, 0.05);
    border-color: rgba(9, 118, 212, 0.3);
}

.package-card input:checked+.card-content {
    background: rgba(9, 118, 212, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(9, 118, 212, 0.2);
}

.package-card input:checked+.card-content .card-check {
    opacity: 1;
    transform: scale(1);
}

.card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.card-check svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-white);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 118, 212, 0.1);
    border-radius: 12px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-color);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-price {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-top: 4px;
}

.card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    white-space: nowrap;
}

.card-badge--best {
    background: linear-gradient(135deg, var(--accent-color), #06b6d4);
    color: var(--text-white);
    border: none;
}

/* Duration Cards */
.package-card--duration .card-content {
    padding: 20px 16px;
}

/* Recommended Card */
.package-card--recommended .card-content {
    border-color: rgba(9, 118, 212, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   DELIVERY TOGGLE
═══════════════════════════════════════════════════════════════ */
.delivery-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-option svg {
    width: 20px;
    height: 20px;
}

.toggle-option:hover {
    background: rgba(9, 118, 212, 0.05);
    border-color: rgba(9, 118, 212, 0.3);
    color: var(--text-light);
}

.toggle-option.active {
    background: rgba(9, 118, 212, 0.1);
    border-color: var(--accent-color);
    color: var(--text-white);
}

.toggle-option.active svg {
    stroke: var(--accent-color);
}

/* Delivery Fields */
.delivery-fields {
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.delivery-fields.hidden {
    display: none;
}

/* DateTime Selection */
.datetime-selection {
    margin-bottom: 24px;
}

.datetime-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   TERMS CHECKBOX
═══════════════════════════════════════════════════════════════ */
.terms-checkbox {
    margin-top: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-custom svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-white);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.checkbox-wrapper input:checked+.checkbox-custom {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-wrapper input:checked+.checkbox-custom svg {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--accent-color);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--accent-hover);
}

/* ═══════════════════════════════════════════════════════════════
   SUCCESS STEP
═══════════════════════════════════════════════════════════════ */
.success-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: #22c55e;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.success-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.success-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-value {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
}

.success-btn {
    display: inline-flex;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION BUTTONS
═══════════════════════════════════════════════════════════════ */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn svg {
    width: 18px;
    height: 18px;
}

.nav-btn--back {
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn--back:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-btn--back.hidden {
    visibility: hidden;
    opacity: 0;
}

.nav-btn--next {
    color: var(--text-white);
    background: var(--accent-color);
    border: none;
}

.nav-btn--next:hover {
    background: var(--accent-hover);
}

.nav-btn--next.complete {
    background: #22c55e;
}

.nav-btn--next.complete:hover {
    background: #16a34a;
}