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

body.wizard-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a3a6b 0%, #254387 50%, #1e5799 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
}

.wizard-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem 4rem;
}

.wizard-logo {
    margin-bottom: 2rem;
}

.wizard-logo img {
    height: 48px;
    width: auto;
}

.wizard-card {
    width: 100%;
    max-width: 860px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.wizard-header {
    background: linear-gradient(90deg, #254387 0%, #638CD2 100%);
    padding: 1.5rem 2rem;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 0;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
}

.stepper-step:not(:last-child)::after {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

.stepper-step.active .stepper-num {
    background: #ffffff;
    color: #254387;
}

.stepper-step.done .stepper-num {
    background: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.stepper-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stepper-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    display: none;
}

.stepper-step.active .stepper-label {
    color: #ffffff;
    display: block;
}

@media (min-width: 480px) {
    .stepper-label {
        display: block;
    }
}

.wizard-body {
    padding: 2rem;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.75rem;
    line-height: 1.4;
}

.field-group {
    margin-bottom: 1.75rem;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.card-grid.grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.select-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 0.75rem;
    background: #f8faff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    line-height: 1.3;
}

.select-card:hover {
    border-color: #638CD2;
    background: #eef4ff;
    color: #254387;
}

.select-card:focus {
    outline: 3px solid #638CD2;
    outline-offset: 2px;
}

.select-card.selected {
    border-color: #254387;
    background: #dce8ff;
    color: #1a2d6b;
    box-shadow: 0 0 0 3px rgba(37, 67, 135, 0.15);
}

.select-card svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    fill: currentColor;
}

.select-card.selected svg {
    color: #254387;
}

.location-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .location-row {
        grid-template-columns: 1fr;
    }
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #1a1a2e;
    background: #f8faff;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: #638CD2;
    background: #ffffff;
}

.form-input::placeholder {
    color: #9ca3af;
}

.phone-row {
    display: flex;
    gap: 0.625rem;
}

.phone-country {
    width: 100px;
    flex-shrink: 0;
    padding: 0.625rem 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1a1a2e;
    background: #f8faff;
    cursor: pointer;
}

.phone-country:focus {
    outline: none;
    border-color: #638CD2;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #1a1a2e;
    background: #f8faff;
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-textarea:focus {
    outline: none;
    border-color: #638CD2;
    background: #ffffff;
}

.input-sublabel {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.375rem;
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .name-row {
        grid-template-columns: 1fr;
    }
}

.field-error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.375rem;
    display: none;
}

.field-error.visible {
    display: block;
}

.wizard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-prev {
    background: #f3f4f6;
    color: #374151;
}

.btn-prev:hover {
    background: #e5e7eb;
}

.btn-prev:disabled,
.btn-prev.hidden {
    opacity: 0;
    pointer-events: none;
}

.btn-next {
    background: #254387;
    color: #ffffff;
    margin-left: auto;
}

.btn-next:hover {
    background: #1a3270;
}

.btn-submit {
    background: #16a34a;
    color: #ffffff;
    margin-left: auto;
}

.btn-submit:hover {
    background: #15803d;
}

.btn-submit.hidden,
.btn-next.hidden {
    display: none;
}

.btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.confirmation {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    gap: 1.25rem;
}

.confirmation.active {
    display: flex;
}

.confirmation-icon {
    width: 72px;
    height: 72px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-icon svg {
    width: 36px;
    height: 36px;
    fill: #16a34a;
}

.confirmation h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.confirmation p {
    font-size: 0.9375rem;
    color: #6b7280;
    max-width: 420px;
    line-height: 1.6;
}

.confirmation-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: #254387;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.confirmation-back:hover {
    background: #1a3270;
}

.server-errors {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: #dc2626;
}

.server-errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

.loading {
    pointer-events: none;
    opacity: 0.7;
}

.char-count {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: right;
    margin-top: 0.25rem;
}

.char-count.warning {
    color: #dc2626;
}
