/* ===== QUOTE FORM ===== */

.quote-form-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 80px 20px;
    margin-top: 60px;
}

.quote-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.quote-form-header {
    background: linear-gradient(135deg, #012a9e 0%, #131974 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
}

.quote-form-header h2 {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.quote-form-header p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
}

.quote-form {
    padding: 50px 40px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 1.4rem;
    color: #012a9e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8ecf1;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #012a9e;
    box-shadow: 0 0 0 3px rgba(1, 42, 158, 0.1);
}

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

.form-group select {
    cursor: pointer;
    background-color: white;
}

.radio-group,
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: #012a9e;
    background: #f8f9fb;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #012a9e;
}

.radio-option span,
.checkbox-option span {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* ===== SERVICE RECOMMENDATION CARDS ===== */
.rec-layout-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rec-layout-toggle__label {
    font-size: 0.9rem;
    color: #012a9e;
    font-weight: 700;
}

.rec-layout-btn {
    border: 1px solid #d8e6ff;
    background: white;
    color: #012a9e;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.rec-layout-btn:hover,
.rec-layout-btn.active {
    background: #012a9e;
    border-color: #012a9e;
    color: white;
}

.rec {
    background: white;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.rec__header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.rec__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #012a9e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.rec__title {
    margin: 0;
    color: #012a9e;
    font-size: 1.1rem;
    font-weight: 800;
}

.rec__message {
    margin: 6px 0 0 0;
    color: #222;
    line-height: 1.6;
}

.rec__footer {
    margin-top: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.rec__reason {
    margin: 0;
    color: #666;
    font-size: 0.92rem;
    line-height: 1.45;
    flex: 1;
}

.rec__btn {
    padding: 10px 16px;
    background: #012a9e;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
}

.rec__btn:hover {
    background: #001f7a;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(1, 42, 158, 0.18);
}

.rec__btn:active {
    transform: translateY(0px);
}

.rec-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eafff0;
    border: 1px solid #bdeccb;
    color: #167a3d;
    font-weight: 900;
}

.rec-success__check {
    font-size: 1.1rem;
}

.photo-grid {
    display: grid;
}

.photo-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Layout A */
#service-recommendations[data-rec-layout="a"] .rec__footer {
    flex-direction: row;
}

/* Layout B */
#service-recommendations[data-rec-layout="b"] .rec__footer {
    flex-direction: column;
    align-items: stretch;
}

#service-recommendations[data-rec-layout="b"] .rec__reason {
    background: #f6f9ff;
    border: 1px dashed #cfe0ff;
    padding: 12px;
    border-radius: 12px;
    color: #2b3b55;
}

#service-recommendations[data-rec-layout="b"] .rec__btn {
    width: 100%;
    text-align: center;
}

/* Layout C */
#service-recommendations[data-rec-layout="c"] .rec {
    padding: 14px;
}

#service-recommendations[data-rec-layout="c"] .rec__title {
    display: none;
}

#service-recommendations[data-rec-layout="c"] .rec__message {
    margin-top: 0;
}

#service-recommendations[data-rec-layout="c"] .rec__footer {
    margin-top: 10px;
}

#service-recommendations[data-rec-layout="c"] .rec__reason {
    display: none;
}

@media screen and (max-width: 600px) {
    #service-recommendations[data-rec-layout="a"] .rec__footer {
        flex-direction: column;
        align-items: stretch;
    }

    #service-recommendations[data-rec-layout="a"] .rec__btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== SUBMIT SECTION ===== */
.form-submit {
    margin-top: 40px;
    text-align: center;
}

.submit-btn {
    padding: 16px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #012a9e 0%, #131974 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 42, 158, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(1, 42, 158, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.form-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* ===== FORM RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    .quote-form-container {
        padding: 60px 15px;
    }

    .quote-form-header {
        padding: 40px 25px;
    }

    .quote-form-header h2 {
        font-size: 2rem;
    }

    .quote-form-header p {
        font-size: 1rem;
    }

    .quote-form {
        padding: 35px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-section h3 {
        font-size: 1.2rem;
    }

    .radio-group,
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .submit-btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .quote-form-header h2 {
        font-size: 1.6rem;
    }

    .quote-form-header p {
        font-size: 0.95rem;
    }

    .quote-form {
        padding: 25px 20px;
    }

    .form-section h3 {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
    }
}

/* ===== QUOTE WIZARD ===== */

.wizard-progress {
    padding: 28px 20px 16px;
    margin-bottom: 8px;
}

.wizard-steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ddd;
    color: #999;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

.wizard-step-item.active .step-circle {
    background: #012a9e;
    color: white;
}

.wizard-step-item.completed .step-circle {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #aaa;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}

.wizard-step-item.active .step-label {
    color: #012a9e;
    font-weight: 700;
}

.wizard-step-item.completed .step-label {
    color: #28a745;
}

.wizard-connector {
    flex: 1;
    height: 3px;
    background: #ddd;
    margin: 0 10px 28px;
    transition: background 0.3s;
}

.wizard-connector.filled {
    background: #28a745;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.wizard-nav--right {
    justify-content: flex-end;
}

.wizard-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #012a9e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.wizard-next-btn:hover {
    background: #001f7a;
    transform: translateY(-1px);
}

.wizard-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.wizard-back-btn:hover {
    border-color: #012a9e;
    color: #012a9e;
}

.field-error {
    display: block;
    color: #dc3545;
    font-size: 0.82rem;
    margin-top: 4px;
    min-height: 18px;
}

input.input-error,
select.input-error {
    border-color: #dc3545 !important;
}

/* ===== SUCCESS SCREEN ===== */
#form-success {
    text-align: center;
    padding: 60px 20px;
}

.success-check {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

#form-success h3 {
    font-size: 1.9rem;
    color: #012a9e;
    margin-bottom: 12px;
}

.success-promise {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}

.success-services-block {
    display: inline-block;
    text-align: left;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 16px 28px;
    margin-bottom: 20px;
}

.success-services-block p {
    margin: 0 0 6px;
    color: #333;
}

.success-services-block ul {
    margin: 0;
    padding-left: 20px;
}

.success-services-block li {
    margin-bottom: 4px;
    color: #012a9e;
    font-weight: 600;
}

.success-subtext {
    color: #666;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .step-label { display: none; }
    .wizard-connector { margin-bottom: 0; }
    .wizard-steps-row { gap: 4px; }
}

/* ===== SERVICE RECOMMENDATION CARD (compact) ===== */
.service-rec {
    background: #f0f4ff;
    border-left: 3px solid #012a9e;
    border-radius: 6px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.service-rec-heading {
    margin: 0;
    font-size: 1rem;
    color: #111;
    flex: 1 1 100%;
}

.service-rec-reason {
    margin: 0;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    flex: 1;
}

.service-rec-btn {
    padding: 9px 18px;
    background: #012a9e;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.service-rec-btn:hover {
    background: #001f7a;
}

/* ===== REQUIRED STAR ===== */
.required-star {
    color: #dc3545;
    margin-left: 2px;
}

/* ===== SUBMIT ERROR ===== */
.submit-error-msg {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fff0f0;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #dc3545;
    font-size: 0.95rem;
    text-align: center;
}

/* ===== STEP 3 SUMMARY ===== */
.step3-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    align-items: baseline;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.step3-summary-label {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.step3-summary-value {
    color: #222;
}
