* {
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
}

.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    background: #f5f4f2;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-header {
    background: linear-gradient(135deg, #4a4844 0%, #6d6b68 100%);
    color: #f5f4f2;
    padding: 30px;
    text-align: center;
}

.quiz-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.progress-container {
    padding: 20px 30px;
    background: #ece9e5;
}

.progress {
    height: 10px;
    border-radius: 10px;
    background: #d9d5ce;
}

.progress-bar {
    background: linear-gradient(90deg, #8b7f6d 0%, #a9a196 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.quiz-content {
    padding: 40px 30px;
    min-height: 400px;
    background: #fdfcfa;
}

.section-heading {
    color: #3d3a37;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 4px solid #c9c3b6;
    display: flex;
    align-items: center;
}

.section-heading i {
    margin-right: 15px;
    font-size: 32px;
    color: #8b7f6d;
}

.section-description {
    font-size: 16px;
    color: #666359;
    margin-bottom: 30px;
    padding: 15px;
    background: #f0ede8;
    border-radius: 10px;
    border-left: 4px solid #8b7f6d;
}

.answer-option {
    background: #ffffff;
    border: 3px solid #e5e1da;
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.answer-option:hover {
    border-color: #8b7f6d;
    background: #faf8f5;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #8b7f6d;
}

.answer-option.selected {
    border-color: #8b7f6d;
    background: #f0ede8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.answer-label {
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    margin: 0;
    width: 100%;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.answer-content {
    flex: 1;
}

.answer-title {
    font-size: 16px;
    font-weight: 600;
    color: #3d3a37;
    margin-bottom: 4px;
    line-height: 1.3;
}

.answer-description {
    display: none;
}

.answer-meta {
    display: none !important;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.badge-quantity {
    background: #8b7f6d;
    color: #ffffff;
}

.button-container {
    padding: 20px 30px;
    background: #ece9e5;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.btn-quiz {
    padding: 14px 35px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-quiz:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-back {
    background: #a9a196;
    color: white;
}

.btn-back:hover {
    background: #9b9387;
    color: white;
}

.btn-next {
    background: #8b7f6d;
    color: white;
}

.btn-next:hover {
    background: #7d7a6a;
    color: white;
}

.btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ====================================
   SUMMARY STYLES - SIMPLIFIED
   ==================================== */

.summary-container {
    padding: 40px 30px;
    background: #fdfcfa;
}

.summary-header-box {
    padding: 20px 30px;
    margin-bottom: 30px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.summary-header-logo {
    flex: 0 0 auto;
}

.summary-header-logo img {
    max-width: 120px;
    height: auto;
}

.summary-header-contact {
    flex: 1;
    text-align: right;
    padding-left: 30px;
}

.summary-header-contact p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #3d3a37;
}

.summary-header-contact .company-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.summary-header-contact .company-address {
    font-size: 12px;
}

.summary-header-contact .company-contact {
    font-size: 12px;
    margin-top: 5px;
}

.offer-intro {
    border: 1px solid #d9d5ce;
    border-radius: 0;
    padding: 25px;
    margin-bottom: 30px;
    color: #3d3a37;
    line-height: 1.8;
    background: white;
}

.offer-intro p {
    margin: 0 0 15px 0;
    font-size: 14px;
}

.offer-intro p:last-child {
    margin-bottom: 0;
}

.summary-header {
    text-align: center;
    margin-bottom: 30px;
    display: none;
}

.summary-header h2 {
    color: #3d3a37;
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 6px;
}

.summary-grid {
    display: block;
    margin-bottom: 20px;
}

.summary-card {
    background: white;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    border: 1px solid #d9d5ce;
    border-left: none;
    transition: none;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 0;
}

.summary-card:hover {
    transform: none;
    box-shadow: none;
    border-left-color: transparent;
}

.summary-card-header {
    display: none;
}

.summary-card-icon {
    display: none;
}

.summary-card-title {
    color: #3d3a37;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e1da;
}

.summary-card-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.summary-item {
    background: white;
    border-radius: 0;
    padding: 12px 0;
    page-break-inside: avoid;
    break-inside: avoid;
    border-bottom: 1px solid #e5e1da;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-name {
    font-weight: 600;
    color: #3d3a37;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.summary-materials {
    margin-top: 8px;
    padding: 8px 0;
    background: white;
    border-radius: 0;
    border: none;
}

.materials-label {
    font-size: 11px;
    color: #4a4844;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.material-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 11px;
    border-bottom: 1px solid #f0ede8;
}

.material-item:last-child {
    border-bottom: none;
}

.material-name {
    color: #666359;
    flex: 1;
    font-weight: 500;
    line-height: 1.3;
}

.material-name small {
    display: block;
    font-size: 10px;
    color: #999;
    font-weight: normal;
    margin-top: 2px;
}

.material-price {
    color: #4a4844;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
    padding-left: 10px;
}

.summary-breakdown {
    margin-top: 8px;
    padding: 8px 0;
    background: white;
    border-radius: 0;
    border: none;
}

.breakdown-section {
    margin-bottom: 8px;
}

.breakdown-section:last-child {
    margin-bottom: 0;
}

.breakdown-section-title {
    font-size: 10px;
    color: #8b7f6d;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 11px;
    border-bottom: 1px solid #f0ede8;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    color: #666359;
    font-weight: 500;
    flex: 1;
}

.breakdown-label.sub-item {
    color: #8b7f6d;
    padding-left: 10px;
    font-size: 10px;
}

.breakdown-label.type-badge {
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 0;
    margin-left: 6px;
    font-weight: 600;
    text-transform: uppercase;
    background: none;
}

.breakdown-label.type-labor {
    background: none;
    color: #666359;
}

.breakdown-label.type-material {
    background: none;
    color: #666359;
}

.breakdown-price {
    color: #3d3a37;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
    padding-left: 10px;
}

.breakdown-price.sub-item {
    color: #666359;
}

.breakdown-total {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #d9d5ce;
    background: white;
    padding: 6px 0;
}

.breakdown-total .breakdown-label {
    color: #3d3a37;
    font-weight: 600;
    font-size: 12px;
}

.breakdown-total .breakdown-price {
    color: #3d3a37;
    font-weight: 600;
    font-size: 12px;
}

.summary-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #3d3a37;
    text-align: right;
    padding: 8px 0;
    margin-top: 8px;
}

.summary-item-price:before {
    content: "Total: ";
    font-size: 11px;
    color: #999;
    font-weight: normal;
    display: inline;
    margin-right: 5px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-download,
.btn-email {
    background: #8b7f6d;
    color: white;
    padding: 12px 30px;
    border-radius: 0;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: none;
    cursor: pointer;
}

.btn-download:hover,
.btn-email:hover {
    transform: none;
    box-shadow: none;
    background: #7d7a6a;
    color: white;
}

/* ====================================
   CONTACT SECTION STYLING
   ==================================== */

.contact-section {
    background: white;
    border: 1px solid #d9d5ce;
    border-radius: 0;
    padding: 30px;
    margin: 30px 0;
}

.contact-header {
    text-align: left;
    margin-bottom: 25px;
}

.contact-header h3 {
    color: #3d3a37;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-header p {
    color: #666359;
    font-size: 13px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: #3d3a37;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d5ce;
    border-radius: 0;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #3d3a37;
}

.form-control:focus {
    outline: none;
    border-color: #8b7f6d;
    box-shadow: none;
}

.form-control::placeholder {
    color: #999;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 11px;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.btn-send {
    padding: 12px 20px;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    color: white;
}

.btn-send.btn-primary {
    background: #8b7f6d;
}

.btn-send.btn-primary:hover {
    background: #7d7a6a;
    transform: none;
    box-shadow: none;
}

.btn-send.btn-success {
    background: #25d366;
}

.btn-send.btn-success:hover {
    background: #1fa952;
    transform: none;
    box-shadow: none;
}

.summary-footer {
    background: white;
    color: #3d3a37;
    border-radius: 0;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    box-shadow: none;
    border: 1px solid #d9d5ce;
}

.summary-footer h3 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
}

.total-price-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 15px;
}

.total-label {
    font-size: 14px;
    font-weight: 600;
}

.total-value {
    font-size: 24px;
    font-weight: 700;
    color: #3d3a37;
}

/* ====================================
   PRINT STYLES
   ==================================== */

@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .quiz-container {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }
    
    .action-buttons,
    .button-container,
    .contact-section,
    form[method="post"] {
        display: none !important;
    }
    
    .summary-container {
        padding: 15px;
    }
    
    .summary-grid {
        display: block;
    }
    
    .summary-card {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 10px;
    }
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .quiz-container {
        border-radius: 0;
    }
    
    .quiz-content {
        padding: 25px 15px;
    }
    
    .section-heading {
        font-size: 20px;
    }
    
    .answer-option {
        padding: 12px 14px;
        margin-bottom: 10px;
    }
    
    .answer-title {
        font-size: 14px;
    }
    
    .button-container {
        padding: 12px 15px;
    }
    
    .btn-quiz {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .summary-container {
        padding: 20px 15px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .summary-card {
        padding: 15px;
    }
    
    .offer-intro {
        padding: 15px;
        font-size: 13px;
    }
    
    .total-value {
        font-size: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .contact-section {
        padding: 20px 15px;
    }
    
    .button-group {
        grid-template-columns: 1fr;
    }
    
    .btn-send {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .material-item,
    .breakdown-item {
        font-size: 10px;
        padding: 4px 0;
    }
    
    .material-price,
    .breakdown-price {
        min-width: 60px;
        font-size: 10px;
    }
    
    .summary-item-price {
        font-size: 13px;
    }
}