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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #000000;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.form-wrapper {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 50px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.page h1 {
    color: #000000;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page h1 svg {
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0;
    color: #d32f2f;
}

.page h2 {
    color: #000000;
    font-size: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.option-card {
    display: block;
    cursor: pointer;
    border: 2px solid #d32f2f;
    border-radius: 0;
    padding: 25px;
    text-align: center;
    transition: all 0.2s ease;
    background: #ffffff;
}

.option-card:hover {
    background: #ffebee;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(211, 47, 47, 0.2);
}

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

.option-card input[type="radio"]:checked + .card-content {
    color: #d32f2f;
    font-weight: bold;
}

.option-card input[type="radio"]:checked ~ .card-content,
.option-card:has(input[type="radio"]:checked) {
    background: #ffebee;
    border-color: #d32f2f;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.card-content .icon {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.card-content .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-content span:not(.icon) {
    font-size: 16px;
    color: #000000;
    margin-top: 5px;
}

/* Preserve explicit fill colors - ensure style attributes and fill attributes are not overridden */
.card-content .icon svg [fill],
.card-content .icon svg [style*="fill"] {
    /* Inline styles and attributes should take precedence - no override needed */
}

/* Icon styling for PNG images (when using .icon-svg class) */
.icon-svg {
    display: inline-block;
    width: 96px;
    height: 96px;
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
    vertical-align: middle;
    margin-bottom: 10px;
}

.option-card:hover .icon svg {
    color: #b71c1c;
}

.option-card input[type="radio"]:checked ~ .card-content .icon svg {
    color: #d32f2f;
}

.card-content span:not(.icon) {
    font-size: 16px;
    color: #000000;
}

.slider-container {
    margin: 40px 0;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 0;
    background: #ffebee;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 0;
    background: #d32f2f;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 0;
    background: #d32f2f;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: #000000;
}

.input-with-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.btn-inc-dec {
    background: #d32f2f;
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 0;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-inc-dec:hover {
    background: #b71c1c;
    transform: scale(1.1);
}

.input-with-buttons input[type="number"] {
    width: 150px;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #d32f2f;
    border-radius: 0;
    color: #000000;
    background: #ffffff;
}

.input-with-buttons .unit {
    font-size: 18px;
    color: #000000;
    font-weight: bold;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 500;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #d32f2f;
    border-radius: 0;
    color: #000000;
    background: #ffffff;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.form-group-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group-row .form-group:first-child {
    flex: 2;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b71c1c;
}

.checkbox-group {
    margin: 30px 0;
}

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

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #d32f2f;
}

.checkbox-group a {
    color: #d32f2f;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.buttons-single {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    padding: 15px 30px;
    font-size: 16px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #ffffff;
}

.btn-back {
    background: #757575;
}

.btn-back:hover {
    background: #616161;
    transform: translateY(-2px);
}

.btn-next,
.btn-submit {
    background: #d32f2f;
}

.btn-next:hover,
.btn-submit:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

.btn-submit {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

/* Summary page styles */
.summary-container {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-top: 20px;
}

.summary-container h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.summary-container h1 svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: #d32f2f;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #ffebee;
    margin-bottom: 10px;
}

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

.summary-label {
    font-weight: 600;
    color: #000000;
}

.summary-value {
    color: #000000;
    text-align: right;
}

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

.summary-section h2 {
    color: #d32f2f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d32f2f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-section h2 svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #d32f2f;
}

.success-message {
    background: #c8e6c9;
    color: #2e7d32;
    padding: 20px;
    border-radius: 0;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    background: #ffcdd2;
    color: #c62828;
    padding: 20px;
    border-radius: 0;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .form-wrapper {
        padding: 20px;
    }
    
    .options {
        grid-template-columns: 1fr;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
