/* =========================================
   SUNTECH - Multi-Step Wizard Form Styles
   ========================================= */

/* Google Font */
@import url('./gfonts-wizard.css');

/* ---- Wizard Wrapper ---- */
.suntech-wizard {
    font-family: 'Inter', sans-serif;
    margin: 0 auto 60px;
    position: relative;
}

/* ---- Progress Bar ---- */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.wizard-progress-text {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.wizard-progress-bar-wrap {
    width: 100%;
    background: #f0f0f0;
    border-radius: 50px;
    height: 6px;
    margin-bottom: 30px;
    overflow: hidden;
}

.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ea6f1e, #ffb347);
    border-radius: 50px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Step Card ---- */
.wizard-step {
    display: none;
    animation: fadeSlideIn 0.4s ease forwards;
}

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

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wizard-step.going-back {
    animation: fadeSlideInLeft 0.4s ease forwards;
}

.wizard-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
    padding: 48px 52px;
    position: relative;
    overflow: hidden;
}

.wizard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ea6f1e, #ffb347);
}

/* ---- Step Header ---- */
.wizard-step-header {
    text-align: center;
    margin-bottom: 36px;
}

.wizard-step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff5e6, #ffe0b2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: #ea6f1e;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.2);
}

.wizard-step-question {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0;
}

.wizard-step-sub {
    font-size: 14px;
    color: #888;
    margin-top: 8px;
}

/* ---- Choice Buttons ---- */
.wizard-choices {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.wizard-choices.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.wizard-choices.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.wizard-choices.cols-1 {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-choice-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8f9fb;
    border: 2px solid #eef0f4;
    border-radius: 14px;
    padding: 18px 22px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.wizard-choice-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,153,0,0.06), rgba(255,179,71,0.03));
    opacity: 0;
    transition: opacity 0.25s;
}

.wizard-choice-btn:hover {
    border-color: #ea6f1e;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.15);
}

.wizard-choice-btn:hover::after {
    opacity: 1;
}

.wizard-choice-btn.selected {
    border-color: #ea6f1e;
    background: linear-gradient(135deg, #fff8ee, #fff3e0);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.2);
}

.wizard-choice-icon {
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.25s;
}

.wizard-choice-btn:hover .wizard-choice-icon,
.wizard-choice-btn.selected .wizard-choice-icon {
    background: linear-gradient(135deg, #ea6f1e, #ffb347);
    box-shadow: 0 4px 12px rgba(255,153,0,0.35);
}

.wizard-choice-btn:hover .wizard-choice-icon span,
.wizard-choice-btn.selected .wizard-choice-icon span {
    filter: brightness(10);
}

.wizard-choice-text {
    flex: 1;
}

.wizard-choice-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
}

.wizard-choice-desc {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 3px;
    font-weight: 400;
}

.wizard-choice-check {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    background: #fff;
}

.wizard-choice-btn.selected .wizard-choice-check {
    background: #ea6f1e;
    border-color: #ea6f1e;
    color: white;
}

/* ---- Input Fields ---- */
.wizard-input-group {
    margin-bottom: 16px;
}

.wizard-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.wizard-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eef0f4;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #1a1a2e;
    background: #f8f9fb;
    transition: all 0.25s;
    outline: none;
}

.wizard-input:focus {
    border-color: #ea6f1e;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.1);
}

.wizard-input::placeholder {
    color: #bbb;
}

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

/* Salutation Buttons */
.wizard-salutation {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.wizard-sal-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #eef0f4;
    border-radius: 12px;
    background: #f8f9fb;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    transition: all 0.25s;
}

.wizard-sal-btn:hover {
    border-color: #ea6f1e;
    color: #ea6f1e;
}

.wizard-sal-btn.selected {
    background: linear-gradient(135deg, #ea6f1e, #ffb347);
    border-color: #ea6f1e;
    color: white;
}

/* ---- Size Input Special ---- */
.wizard-size-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.wizard-size-custom {
    display: none;
    margin-top: 4px;
}

.wizard-size-custom.visible {
    display: block;
    animation: fadeSlideIn 0.3s ease;
}

/* ---- Navigation Buttons ---- */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    gap: 16px;
}

.wizard-btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 2px solid #eef0f4;
    border-radius: 12px;
    padding: 14px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.25s;
}

.wizard-btn-back:hover {
    border-color: #ea6f1e;
    color: #ea6f1e;
}

.wizard-btn-next {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ea6f1e, #ffb347);
    border: none;
    border-radius: 12px;
    padding: 16px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.35);
    margin-left: auto;
}

.wizard-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 153, 0, 0.45);
    background: linear-gradient(135deg, #e68a00, #ea6f1e);
}

.wizard-btn-next:active {
    transform: translateY(0);
}

.wizard-btn-next.submit-btn {
    background: linear-gradient(135deg, #1a1a2e, #2d2d5e);
    box-shadow: 0 6px 20px rgba(26, 26, 46, 0.3);
}

.wizard-btn-next.submit-btn:hover {
    background: linear-gradient(135deg, #2d2d5e, #3d3d7e);
    box-shadow: 0 10px 28px rgba(26, 26, 46, 0.4);
}

/* ---- Summary Box ---- */
.wizard-summary {
    background: #f8f9fb;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    border: 1px solid #eef0f4;
}

.wizard-summary-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ea6f1e;
    margin-bottom: 16px;
}

.wizard-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wizard-summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wizard-summary-key {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.wizard-summary-val {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 600;
}

/* ---- Consent ---- */
.wizard-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.wizard-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #ea6f1e;
    cursor: pointer;
    flex-shrink: 0;
}

.wizard-consent label {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
    cursor: pointer;
}

.wizard-consent label a {
    color: #ea6f1e;
    text-decoration: underline;
}

/* ---- Success State ---- */
.wizard-success {
    display: none;
    text-align: center;
    padding: 60px 40px;
    animation: fadeSlideIn 0.5s ease;
}

.wizard-success.show {
    display: block;
}

.wizard-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00c853, #69f0ae);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: white;
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.35);
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

@keyframes successPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.wizard-success h3 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.wizard-success p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    max-width: 420px;
    margin: 0 auto;
}

/* ---- Error Messages ---- */
.wizard-error {
    font-size: 12px;
    color: #e53935;
    margin-top: 6px;
    display: none;
}

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

.wizard-input.error {
    border-color: #e53935;
    background: #fff5f5;
}

/* ---- Tooltip Badge ---- */
.wizard-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ea6f1e, #ffb347);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .wizard-card {
        padding: 32px 24px;
    }

    .wizard-choices.cols-2,
    .wizard-choices.cols-3 {
        grid-template-columns: 1fr;
    }

    .wizard-step-question {
        font-size: 18px;
    }

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

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

    .wizard-btn-next {
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wizard-size-toggle {
        grid-template-columns: 1fr;
    }

    .wizard-salutation {
        flex-direction: column;
    }
}
