/**
 * Modern Wizard Styles - 5-Step Project Creation
 */

/* ==================== PROGRESS INDICATOR ==================== */

.wizard-progress-modern {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
    position: sticky;
    top: 60px;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.step-dots .dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.step-dots .dot::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    width: 1rem;
    height: 2px;
    background: #e2e8f0;
}

.step-dots .dot:last-child::after {
    display: none;
}

.step-dots .dot.completed {
    background: #10b981;
    color: white;
}

.step-dots .dot.completed::after {
    background: #10b981;
}

.step-dots .dot.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.step-label {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

/* ==================== GUIDED QUESTIONS ==================== */

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

.question-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #667eea);
    transition: width 0.3s ease;
}

.question-counter {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.question-content {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.question-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

.question-why {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f0f9ff;
    border-left: 3px solid #0ea5e9;
    border-radius: 6px;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    color: #0c4a6e;
}

.question-why i {
    color: #0ea5e9;
    margin-top: 0.125rem;
}

.question-optional {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #10b981;
    font-size: 0.875rem;
}

/* Question Input Types */

.input-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.input-number input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.input-unit {
    font-weight: 600;
    color: #64748b;
}

.area-input .predefined-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option-btn {
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    font-weight: 500;
}

.option-btn:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.option-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.custom-input-section {
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.custom-input-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #475569;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.input-with-unit input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.radio-options,
.checklist-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-item,
.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-item:hover,
.checklist-item:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.radio-item input[type="radio"],
.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-item input[type="radio"]:checked ~ .label-text,
.checklist-item input[type="checkbox"]:checked ~ .label-text {
    font-weight: 600;
    color: var(--primary);
}

.label-text {
    flex: 1;
    font-size: 0.9375rem;
}

/* Tillval-badge när användaren kommer från räknare (väggar/tak = beräknat, övriga = tillval) */
.checklist-tillval-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.25rem;
}
.checklist-item-tillval .label-text {
    font-weight: 500;
}

.wizard-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.wizard-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.char-counter {
    text-align: right;
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.upload-input .upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-input .upload-area:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.upload-input .upload-area i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.upload-input .upload-area h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.upload-input .upload-area p {
    margin: 0;
    color: #64748b;
}

.upload-hint {
    font-size: 0.875rem !important;
    margin-top: 0.5rem !important;
}

.file-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.file-item i {
    color: #64748b;
}

.file-item span {
    flex: 1;
    font-size: 0.875rem;
}

.btn-remove {
    padding: 0.25rem 0.5rem;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-remove:hover {
    background: #fecaca;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.question-navigation button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== REVIEW STEP ==================== */

.review-header {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 2rem;
}

.review-header h2 {
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.review-header h2 i {
    color: #3b82f6;
}

.review-header p {
    color: #1e3a8a;
    font-size: 1.125rem;
    margin: 0;
}

.review-section {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header-with-edit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header-with-edit h3 {
    margin: 0;
}

.btn-edit {
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: var(--primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-edit:hover {
    background: var(--primary);
    color: white;
}

.review-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    font-weight: 600;
    color: #475569;
}

.review-value {
    color: var(--text-primary);
    text-align: left;
}

.description-preview {
    white-space: pre-line;
    line-height: 1.6;
    text-align: left;
}

.answer-list {
    margin: 0;
    padding-left: 1.5rem;
}

.answer-list li {
    margin: 0.25rem 0;
}

.images-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-image {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.preview-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-images {
    color: #94a3b8;
    font-style: italic;
    margin: 0.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    text-align: center;
}

.ready-to-send-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 3px solid #0ea5e9;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.checkmark-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.checkmark-icon i {
    font-size: 3rem;
    color: #10b981;
}

.ready-to-send-box h4 {
    font-size: 1.5rem;
    margin: 0 0 0.75rem 0;
    color: #0c4a6e;
}

.ready-to-send-box p {
    color: #075985;
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #0c4a6e;
}

.benefit-item i {
    color: #0ea5e9;
    font-size: 1.25rem;
}

/* ==================== LOADING & SUCCESS STATES ==================== */

.wizard-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

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

.wizard-loading h3 {
    font-size: 1.5rem;
    margin: 0 0 2rem 0;
    color: var(--text-primary);
}

.loading-steps {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.loading-steps .step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.9375rem;
}

.loading-steps .step.done {
    color: #10b981;
}

.loading-steps .step.active {
    color: var(--primary);
    font-weight: 600;
}

.success-animation {
    text-align: center;
    padding: 4rem 2rem;
}

.checkmark-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease;
}

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

.checkmark-circle .checkmark {
    width: 50px;
    height: 80px;
    border: solid white;
    border-width: 0 8px 8px 0;
    transform: rotate(45deg);
    animation: checkmark 0.3s ease 0.3s both;
}

@keyframes checkmark {
    from {
        height: 0;
    }
    to {
        height: 80px;
    }
}

.success-animation h2 {
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
}

.success-animation p {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0 0 2rem 0;
}

.success-animation p.success-expectation {
    font-size: 1rem;
    max-width: 28rem;
    margin: -1rem auto 2rem;
    padding: 0.75rem 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #166534;
    line-height: 1.5;
}

.next-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.next-actions a {
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.redirect-info {
    color: #94a3b8;
    font-size: 0.875rem;
}

.wizard-error {
    text-align: center;
    padding: 4rem 2rem;
}

.wizard-error i {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1.5rem;
}

.wizard-error h2 {
    font-size: 1.75rem;
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
}

.wizard-error p {
    color: #64748b;
    margin: 0 0 2rem 0;
}

/* ==================== DRAFT RESTORE BANNER ==================== */

.draft-restore-banner {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 600px;
    width: 90%;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==================== MOBILE RESPONSIVE ==================== */

@media (max-width: 768px) {
    .wizard-progress-modern {
        padding: 1rem;
        top: calc(60px + env(safe-area-inset-top));
    }

    .step-dots .dot {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .step-dots .dot::after {
        width: 0.75rem;
        right: -1rem;
    }

    .step-label {
        font-size: 0.9375rem;
    }

    .guided-questions-container {
        padding: 1rem;
    }

    .question-content {
        padding: 1.5rem;
    }

    .question-title {
        font-size: 1.25rem;
    }

    .review-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .section-header-with-edit {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .next-actions {
        flex-direction: column;
    }

    .next-actions a {
        width: 100%;
        justify-content: center;
    }

    .images-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== TOAST NOTIFICATIONS ==================== */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-size: 0.875rem;
    max-width: 320px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid #0ea5e9;
}

.toast i {
    font-size: 1rem;
    flex-shrink: 0;
}

.toast.success i {
    color: #10b981;
}

.toast.error i {
    color: #ef4444;
}

.toast.info i {
    color: #0ea5e9;
}

.toast.loading i {
    color: #0ea5e9;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .toast {
        bottom: calc(80px + env(safe-area-inset-bottom));
        right: 1rem;
        left: auto;
        max-width: min(320px, 88vw);
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ==================== IMAGE UPLOAD INFO ==================== */

.image-upload-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.image-upload-info h3 {
    color: #1e40af;
    font-size: 1.125rem;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.image-upload-info h3 i {
    color: #3b82f6;
}

.image-upload-info > p {
    color: #1e3a8a;
    margin: 0 0 1rem 0;
    font-size: 0.9375rem;
}

.upload-suggestions {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.upload-suggestions li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #1e3a8a;
    font-size: 0.9375rem;
}

.upload-suggestions li i {
    color: #3b82f6;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.upload-suggestions li strong {
    color: #1e40af;
}

.upload-note {
    background: white;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 1rem 0 0 0;
    color: #059669;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #d1fae5;
}

.upload-note i {
    color: #10b981;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .image-upload-info {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .image-upload-info h3 {
        font-size: 1rem;
    }

    .upload-suggestions li {
        font-size: 0.875rem;
    }
}

/* ==================== BUDGET ESTIMATE ==================== */

.budget-estimate-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.budget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.budget-header h3 {
    color: #15803d;
    font-size: 1.125rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.budget-header h3 i {
    color: #22c55e;
}

.budget-toggle-btn {
    background: white;
    border: 1px solid #22c55e;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    color: #15803d;
    transition: all 0.2s ease;
}

.budget-toggle-btn:hover {
    background: #f0fdf4;
    transform: scale(1.05);
}

.budget-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #15803d;
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.budget-subtitle {
    text-align: center;
    color: #166534;
    font-size: 0.875rem;
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

.budget-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #86efac;
}

.budget-factors {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.budget-factors p {
    margin: 0 0 0.75rem 0;
    color: #15803d;
    font-weight: 600;
}

.budget-factors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.budget-factors li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    color: #166534;
    font-size: 0.9375rem;
}

.budget-factors li i {
    color: #22c55e;
    font-size: 0.875rem;
}

.budget-disclaimer {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #92400e;
}

.budget-disclaimer i {
    color: #f59e0b;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.budget-options {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
}

.budget-options > p {
    margin: 0 0 1rem 0;
    color: #15803d;
    font-weight: 600;
}

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

.budget-radio-option {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    position: relative;
}

.budget-radio-option:first-child {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
}

.budget-radio-option:first-child::after {
    content: '⭐ Rekommenderat';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #22c55e;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.budget-radio-option:hover {
    border-color: #22c55e;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.budget-radio-option.active {
    border-color: #22c55e;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.budget-radio-option input[type="radio"] {
    display: none;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.radio-content i {
    font-size: 1.5rem;
    color: #22c55e;
    width: 2rem;
    text-align: center;
}

.radio-content span {
    font-weight: 600;
    color: #1f2937;
    display: block;
}

.radio-content small {
    display: block;
    color: #6b7280;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .budget-estimate-card {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .budget-header h3 {
        font-size: 1rem;
    }

    .budget-amount {
        font-size: 1.5rem;
        padding: 0.75rem;
    }

    .budget-factors,
    .budget-options {
        padding: 1rem;
    }

    .radio-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .radio-content i {
        font-size: 1.25rem;
    }

    .budget-radio-option:first-child::after {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.6875rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ==================== BUDGET REVIEW (in review step) ==================== */

.budget-review-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.budget-review-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 0.75rem;
}

.budget-review-note {
    font-size: 0.9375rem;
    color: #166534;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.budget-review-note i {
    color: #22c55e;
}

.budget-review-info {
    background: white;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #d1fae5;
}

.budget-review-info i {
    flex-shrink: 0;
}

.budget-hidden-note {
    background: #f3f4f6;
    border: 1px dashed #9ca3af;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.budget-hidden-note i {
    color: #9ca3af;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .budget-review-box {
        padding: 1rem;
    }

    .budget-review-amount {
        font-size: 1.5rem;
    }

    .budget-review-note,
    .budget-review-info {
        font-size: 0.8125rem;
    }

    .budget-hidden-note {
        font-size: 0.875rem;
        padding: 0.875rem;
    }
}

/* ==================== GUIDED ANSWERS GRID (in review step) ==================== */

.guided-answers-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
}

.guided-answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    list-style: none;
    padding: 0;
}

.guided-answer-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 80px;
    break-inside: avoid;
}

.guided-answer-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.answer-question {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.answer-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.answer-value ul {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0 0;
}

.answer-value li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-weight: 500;
}

.answer-value li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .guided-answers-section {
        padding: 1rem;
    }

    .guided-answers-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .guided-answer-card {
        padding: 0.875rem;
    }

    .answer-question {
        font-size: 0.8125rem;
    }

    .answer-value {
        font-size: 0.9375rem;
    }
}
