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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 50px 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 16px;
    color: #718096;
    font-weight: 400;
}

.progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 0;
}

.progress-step {
    display: flex;
    align-items: center;
}

.progress-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #cbd5e0;
    transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
    background: #7c3aed;
}

.progress-line {
    width: 60px;
    height: 3px;
    background: #cbd5e0;
    transition: all 0.3s ease;
}

.progress-step.active .progress-line {
    background: #7c3aed;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.service-btn {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-btn:hover {
    border-color: #7c3aed;
    background: #f7fafc;
}

.service-btn.selected {
    border-color: #7c3aed;
    background: #f3f0ff;
    color: #7c3aed;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.prev-btn {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn:hover {
    background: #f7fafc;
}

.next-btn {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.next-btn.disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.stories-section {
    margin-bottom: 30px;
}

.section-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.stories-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.story-btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-btn:hover {
    border-color: #7c3aed;
}

.story-btn.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

.price-label {
    font-size: 14px;
    color: #718096;
}

.side-section {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.side-header {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.measurement-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.measurement-input {
    flex: 1;
}

.measurement-input label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.measurement-input input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.measurement-input input:focus {
    outline: none;
    border-color: #667eea;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.toggle-row label:first-child {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
    background-color: #7c3aed;
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.gable-inputs,
.porch-inputs {
    margin-bottom: 15px;
}

.subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
}

.subtotal-amount {
    color: #10b981;
    font-size: 20px;
}

.estimate-box {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.estimate-amount {
    font-size: 64px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 10px;
}

.estimate-note {
    font-size: 14px;
    color: #718096;
}

.signature-input {
    font-style: italic;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 15px;
    color: #2d3748;
}

.terms-text {
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

.generate-btn {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .container {
        padding: 30px 25px;
    }

    .header h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .step-title {
        font-size: 20px;
    }

    .estimate-amount {
        font-size: 48px;
    }

    .measurement-row {
        flex-direction: column;
        gap: 10px;
    }
}
