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

:root {
    --background: #ffffff;
    --card-foreground: #4b5563;
    --primary-foreground: #ffffff;
    --secondary: #eff6ff;
    --secondary-foreground: #4b5563;
    --muted: #f8f9fa;
    --muted-foreground: #a1a1a1;
    --accent: #243E90;
    --border: #e5e7eb;
    --input: #eff6ff;
    --ring: #3b82f6;
    --radius: 0.5rem;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--muted) 0%, #f3f4f6 100%);
    color: #4b5563;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 3rem;
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.back-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-foreground);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    background: var(--accent);
}

.back-link:hover {
    background: var(--secondary);
    color: #4b5563;
    transform: translateX(-2px);
}

.back-link::before {
    content: "←";
    margin-right: 0.75rem;
    font-size: 1.3rem;
}


/* Added progress bar with 5 steps */

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-step.activee {
    background: #243e90;
    color: var(--primary-foreground);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.progress-step.completed {
    background: var(--accent);
    color: var(--primary-foreground);
}

.progress-step.inactivee {
    background: var(--border);
    color: var(--muted-foreground);
}

.progress-line {
    width: 30px;
    height: 2px;
    background: var(--border);
    transition: all 0.3s ease;
}

.progress-line.completed {
    background: var(--accent);
}

.progress-title {
    font-weight: 700;
    color: #243e90;
    font-size: 1.1rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

#main-content {
    background: #f6f7f7;
}

.device-info {
    background: #ffffff;
    border-radius: calc(var(--radius) * 2);
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    position: sticky;
    top: 2rem;
}

.device-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, var(--accent));
    border-radius: calc(var(--radius) * 2) calc(var(--radius) * 2) 0 0;
}

.device-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.device-row:hover {
    background: var(--secondary);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: var(--radius);
}

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

.device-label {
    color: var(--muted-foreground);
    font-weight: 600;
    font-size: 0.95rem;
}

.device-value {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.1rem;
}

.illustration {
    margin-top: 2rem;
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius);
}

.form-section {
    background: #ffffff;
    border-radius: calc(var(--radius) * 2);
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    position: relative;
}

.form-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, var(--accent));
    border-radius: calc(var(--radius) * 2) calc(var(--radius) * 2) 0 0;
}


/* Added step content styling */

.step-content {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.step-content.activee {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #4b5563;
    font-size: 1.2rem;
}

.select-wrapper {
    position: relative;
}

.form-select {
    width: 100%;
    padding: 1.25rem 1.5rem;
    max-width: 100%;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--input);
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

.form-select:hover {
    border-color: var(--accent);
}

.select-wrapper::after {
    content: "▼";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #2563eb;
    font-weight: bold;
}


/* Added radio button styling */

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--input);
}

.radio-option:hover {
    border-color: var(--accent);
    background: #ffffff;
}

.radio-option.selected {
    border-color: #2563eb;
    background: var(--secondary);
}

.radio-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.radio-input.selected {
    border-color: #2563eb;
}

.radio-input.selected::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #2563eb;
    border-radius: 50%;
}

.radio-content {
    flex: 1;
}

.radio-title {
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.radio-description {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.4;
}


/* Added checkbox styling for functionality step */

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    background: var(--secondary);
}

.functionality-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    color: #2563eb;
    flex-shrink: 0;
}

.info-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #2563eb;
    border-radius: var(--radius);
    padding: 2rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: "ℹ";
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 28px;
    height: 28px;
    background: #2563eb;
    color: var(--primary-foreground);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.info-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e40af;
    margin-left: 3rem;
    font-size: 1.1rem;
}

.info-text {
    color: #1e3a8a;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-left: 3rem;
}

.continue-btn {
    background: linear-gradient(135deg, #243e90 0%, var(--accent) 100%);
    color: var(--primary-foreground);
    border: none;
    padding: 1.25rem 3rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    float: right;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.value-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.value-amount {
    font-size: 2rem;
    font-weight: 700;
}

.estimated-value {
    background: linear-gradient(135deg, #2563eb 0%, var(--accent) 100%);
    color: var(--primary-foreground);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 4%;
}

.continue-btn:activee {
    transform: translateY(0);
}


/* Added final question styling */

.final-question {
    text-align: center;
    margin: 2rem 0;
}

.final-question h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.yes-no-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.yes-no-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--input);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: black;
}

.yes-no-btn:hover {
    border-color: #2563eb;
    background: var(--secondary);
}

.yes-no-btn.selected {
    background: #243e90;
    color: var(--primary-foreground);
    border-color: #2563eb;
}


/* Added loading animation for step transitions */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
    top: 50%;
    bottom: 50%;
    left: 50%;
    right: 50%;
}

.show_breadcrumb_v1 {
    background: rgba(244, 244, 244, 1);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .container {
        padding: 1rem;
    }
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .device-info {
        position: static;
    }
    .progress-bar {
        flex-wrap: wrap;
        justify-content: center;
    }
    .yes-no-buttons {
        flex-direction: column;
        align-items: center;
    }
}