/* ============================================================
   Sage 100 Testversion Multistep – Frontend Styles
   Light Mode · harmonized with sage100testversion.yucebudak.com
   ============================================================
   Design tokens (from site):
     --primary:   #0a68fd
     --headline:  #1E2636
     --body:      #6F778A
     --light-bg:  #F7F9FC
     --border:    #E2E8F0
     --white:     #FFFFFF
     --font:      'Inter'
   ============================================================ */

/* ============================================================
   Reset & Container
   ============================================================ */
.sage100-multistep-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.66;
    color: #1E2636;
    box-sizing: border-box;
    max-width: 1144px;
    margin: 0 auto;
}

.sage100-multistep-container *,
.sage100-multistep-container *::before,
.sage100-multistep-container *::after {
    box-sizing: border-box;
}

/* ============================================================
   Layout – Two-Column
   ============================================================ */
.sage100-form-wrapper {
    display: flex;
    gap: 0;
    min-height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 24px rgba(30, 38, 54, 0.06);
}

.sage100-form-main {
    flex: 1;
    background: #ffffff;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
}

.sage100-form-sidebar {
    width: 330px;
    flex-shrink: 0;
    background: #F7F9FC;
    border-left: 1px solid #E2E8F0;
    padding: 40px 32px;
    display: flex;
    align-items: center;
}

.sage100-sidebar-inner {
    width: 100%;
    text-align: center;
}

/* ============================================================
   Step Navigation (breadcrumb tabs)
   ============================================================ */
.sage100-steps-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E2E8F0;
    flex-wrap: wrap;
}

.sage100-nav-item {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 4px;
    position: relative;
    transition: color 0.2s;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.sage100-nav-item:hover {
    color: #64748b;
}

.sage100-nav-item.active {
    color: #0a68fd;
    font-weight: 700;
}

.sage100-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0a68fd;
    border-radius: 1px;
}

.sage100-nav-item.completed {
    color: #0a68fd;
    font-weight: 600;
}

.sage100-nav-sep {
    color: #cbd5e1;
    font-size: 13px;
    user-select: none;
    margin: 0 6px;
}

/* ============================================================
   Steps (panels)
   ============================================================ */
.sage100-step {
    display: none;
    animation: sage100FadeIn 0.35s ease;
}

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

@keyframes sage100FadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Field Groups
   ============================================================ */
.sage100-field-group {
    margin-bottom: 28px;
}

.sage100-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1E2636;
    letter-spacing: -0.01em;
}

.sage100-req {
    color: #e74c3c;
    font-weight: 700;
}

/* ============================================================
   Range Slider
   ============================================================ */
.sage100-range-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sage100-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #E2E8F0;
    outline: none;
    cursor: pointer;
    transition: box-shadow 0.15s;
}

.sage100-range:focus {
    box-shadow: 0 0 0 3px rgba(10, 104, 253, 0.12);
}

.sage100-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0a68fd;
    border: 3px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(10, 104, 253, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.sage100-range::-webkit-slider-thumb:hover {
    transform: scale(1.12);
    box-shadow: 0 3px 12px rgba(10, 104, 253, 0.4);
}

.sage100-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0a68fd;
    border: 3px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(10, 104, 253, 0.3);
}

.sage100-range::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: #E2E8F0;
}

.sage100-range-output {
    min-width: 75px;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: #0a68fd;
    white-space: nowrap;
}

/* ============================================================
   Radio (styled as checkboxes)
   ============================================================ */
.sage100-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sage100-radio-option {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 16px 20px;
    background: #ffffff;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.sage100-radio-option:hover {
    background: #F7F9FC;
    border-color: #cbd5e1;
}

.sage100-radio-option input {
    display: none;
}

.sage100-radio-box {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
}

.sage100-radio-option input:checked ~ .sage100-radio-box {
    background: #0a68fd;
    border-color: #0a68fd;
}

.sage100-radio-option input:checked ~ .sage100-radio-box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.sage100-radio-option input:checked ~ .sage100-radio-text {
    font-weight: 600;
    color: #0a68fd;
}

.sage100-radio-option input:checked + .sage100-radio-box + .sage100-radio-text {
    color: #0a68fd;
}

/* selected card highlight */
.sage100-radio-option:has(input:checked) {
    border-color: #0a68fd;
    background: rgba(10, 104, 253, 0.04);
    box-shadow: 0 0 0 3px rgba(10, 104, 253, 0.08);
}

.sage100-radio-text {
    font-size: 15px;
    color: #1E2636;
    transition: color 0.2s;
}

/* ============================================================
   Inputs
   ============================================================ */
.sage100-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    background: #ffffff;
    color: #1E2636;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sage100-input::placeholder {
    color: #94a3b8;
}

.sage100-input:focus {
    border-color: #0a68fd;
    box-shadow: 0 0 0 3px rgba(10, 104, 253, 0.1);
}

.sage100-input.sage100-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}

.sage100-input-number {
    max-width: 200px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #0a68fd;
}

/* Select */
.sage100-select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236F778A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.sage100-select option {
    background: #ffffff;
    color: #1E2636;
}

/* ============================================================
   Summary (Step 5)
   ============================================================ */
.sage100-summary-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1E2636;
    letter-spacing: -0.02em;
}

.sage100-summary {
    display: grid;
    gap: 0;
    background: #F7F9FC;
    border-radius: 12px;
    padding: 8px 24px;
    border: 1px solid #E2E8F0;
}

.sage100-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E2E8F0;
    font-size: 14px;
}

.sage100-summary-row:last-child {
    border-bottom: none;
}

.sage100-summary-label {
    color: #6F778A;
}

.sage100-summary-value {
    font-weight: 600;
    color: #1E2636;
    text-align: right;
}

.sage100-summary-total {
    margin-top: 16px;
    padding: 18px 24px;
    background: rgba(10, 104, 253, 0.06);
    border: 1px solid rgba(10, 104, 253, 0.15);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sage100-summary-total .sage100-summary-label {
    color: #0a68fd;
    font-weight: 600;
    font-size: 15px;
}

.sage100-summary-total .sage100-summary-value {
    color: #0a68fd;
    font-size: 22px;
    font-weight: 700;
}

/* ============================================================
   Buttons
   ============================================================ */
.sage100-nav-buttons {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.sage100-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sage100-btn:active {
    transform: scale(0.97);
}

.sage100-btn-next,
.sage100-btn-submit {
    background: #0a68fd;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(10, 104, 253, 0.25);
}

.sage100-btn-next:hover,
.sage100-btn-submit:hover {
    background: #0555d4;
    box-shadow: 0 6px 20px rgba(10, 104, 253, 0.35);
}

.sage100-btn-back {
    background: #F7F9FC;
    color: #6F778A;
    border: 1.5px solid #E2E8F0;
}

.sage100-btn-back:hover {
    background: #eef1f6;
    color: #1E2636;
    border-color: #cbd5e1;
}

.sage100-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================
   Price Sidebar
   ============================================================ */
.sage100-sidebar-text {
    font-size: 14px;
    line-height: 1.66;
    color: #6F778A;
    margin: 0 0 32px;
}

.sage100-price-block {
    margin-bottom: 6px;
}

.sage100-price-value {
    display: block;
    font-size: 52px;
    font-weight: 800;
    color: #0a68fd;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.sage100-price-suffix {
    display: block;
    font-size: 15px;
    color: #94a3b8;
    margin-top: 6px;
}

.sage100-price-tax {
    font-size: 15px;
    color: #94a3b8;
    margin: 0;
}

/* ============================================================
   Success Message
   ============================================================ */
.sage100-success-msg {
    text-align: center;
    padding: 60px 20px;
    animation: sage100FadeIn 0.5s ease;
}

.sage100-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #0a68fd;
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(10, 104, 253, 0.25);
}

.sage100-success-msg h3 {
    font-size: 22px;
    margin: 0 0 12px;
    color: #1E2636;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sage100-success-msg p {
    font-size: 15px;
    color: #6F778A;
    margin: 0;
    line-height: 1.66;
}

/* ============================================================
   Error Messages
   ============================================================ */
.sage100-field-error {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* ============================================================
   Loading Spinner
   ============================================================ */
.sage100-btn.sage100-loading {
    position: relative;
    pointer-events: none;
    color: transparent;
}

.sage100-btn.sage100-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: sage100Spin 0.6s linear infinite;
}

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
    .sage100-form-wrapper {
        flex-direction: column;
    }

    .sage100-form-sidebar {
        width: 100%;
        padding: 28px 32px;
        border-left: none;
        border-top: 1px solid #E2E8F0;
    }

    .sage100-sidebar-inner {
        display: flex;
        align-items: center;
        gap: 28px;
        text-align: left;
    }

    .sage100-sidebar-text {
        flex: 1;
        margin-bottom: 0;
    }

    .sage100-price-block {
        text-align: right;
    }

    .sage100-price-value {
        font-size: 40px;
    }

    .sage100-price-suffix,
    .sage100-price-tax {
        text-align: right;
    }
}

@media (max-width: 560px) {
    .sage100-form-main {
        padding: 24px 20px;
    }

    .sage100-form-sidebar {
        padding: 24px 20px;
    }

    .sage100-sidebar-inner {
        flex-direction: column;
        text-align: center;
    }

    .sage100-price-block {
        text-align: center;
    }

    .sage100-price-suffix,
    .sage100-price-tax {
        text-align: center;
    }

    .sage100-price-value {
        font-size: 36px;
    }

    .sage100-steps-nav {
        gap: 0;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .sage100-nav-item {
        font-size: 12px;
        padding: 4px 2px;
    }

    .sage100-nav-sep {
        margin: 0 3px;
        font-size: 11px;
    }

    .sage100-nav-item.active::after {
        bottom: -17px;
    }

    .sage100-btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .sage100-nav-buttons {
        flex-direction: column;
    }

    .sage100-nav-buttons .sage100-btn {
        width: 100%;
        justify-content: center;
    }

    .sage100-radio-option {
        padding: 14px 16px;
    }

    .sage100-summary {
        padding: 6px 16px;
    }

    .sage100-summary-total {
        padding: 14px 16px;
    }
}
