:root {
    --primary: #4A90E2;
    --primary-hover: #3182CE;
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 8px;
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

.app-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.app-header p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Progress */
.progress-section {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    margin-top: -1px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.progress-bar-bg {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 10%;
    transition: width 0.4s ease-in-out;
}

/* Main Content */
#main-content {
    flex: 1;
    max-width: 1000px;
    margin: 2rem auto;
    width: 100%;
    padding: 0 2rem;
    padding-bottom: 6rem;
}

.step-container {
    background: transparent;
}

.step-container h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.small-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

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

.cards-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.card.selected {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
}

.card-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Material Cards */
.material-card {
    padding: 1.5rem;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 140px;
}

.badge {
    background: #F1F5F9;
    color: var(--text-main);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-primary {
    background: #DBEAFE;
    color: #1E40AF;
}

.accordion {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    width: 100%;
    justify-content: center;
    cursor: pointer;
}

.accordion:hover {
    color: var(--primary);
}

.accordion-content {
    display: none;
    margin-top: 1rem;
    text-align: left;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.included-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.included-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.chevron {
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Checkboxes */
.checkbox-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-card:hover {
    border-color: var(--primary);
    background: #F8FAFC;
}

.checkbox-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    accent-color: var(--primary);
}

.checkbox-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.checkbox-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Form */
.form-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
    border: 1px solid #BFDBFE;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.summary-box h1 {
    color: #1E3A8A;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.summary-details {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.summary-row:last-child {
    border-bottom: none;
}
.summary-label {
    font-weight: 500;
}
.summary-value {
    color: var(--text-muted);
}

/* Footer */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    z-index: 10;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.estimate-section .estimate-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.estimate-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.3s;
}

.footer-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    border: none;
}

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

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: #F1F5F9;
}

/* Utilities */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

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

@media (max-width: 768px) {
    .cards-grid.cols-3 { grid-template-columns: 1fr; }
    .cards-grid.cols-2 { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 1rem; }
    .footer-actions { width: 100%; justify-content: space-between; }
    #main-content { padding-bottom: 8rem; }
}

/* Embed Mode */
body.embed-mode {
    background-color: transparent;
}
body.embed-mode .app-header {
    display: none;
}
body.embed-mode .progress-section {
    border-top: none;
}
body.embed-mode #main-content {
    margin-top: 1rem;
}
