.quote-page {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.quote-page {
    overflow: hidden;
    background: #f7f9fc;
    color: #142033;
}

.container {
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto;
}

.quote-hero {
    padding: 110px 0 72px;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef4fb 100%);
    border-bottom: 1px solid #dbe7f6;
}

.quote-kicker {
    margin: 0 0 18px;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2e83ff;
    font-weight: 700;
}

.quote-hero h1 {
    margin: 0 0 22px;
    font-size: 44px;
    line-height: 1.02;
    font-weight: 650;
    letter-spacing: -0.04em;
    color: #142033;
}

.quote-description {
    margin: 0;
    max-width: 720px;
    font-size: 18px;
    line-height: 1.7;
    color: #415168;
}

.quote-main {
    padding: 90px 0;
    background: #f7f9fc;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.quote-form-card,
.quote-summary-card {
    background: #ffffff;
    border: 1px solid #dbe7f6;
    border-radius: 28px;
    padding: 34px 32px;
    box-shadow: 0 18px 40px rgba(16, 42, 84, 0.08);
}

.quote-form-card h2 {
    margin: 0 0 24px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #142033;
}

.quote-form fieldset {
    margin: 0 0 28px;
    padding: 24px;
    border: 1px solid #dbe7f6;
    border-radius: 22px;
    background: #fbfdff;
}

.quote-form legend {
    padding: 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #142033;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.quote-form .input,
.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    color: #142033;
    background: #f7f9fc;
    border: 1px solid #dbe7f6;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: none;
    box-sizing: border-box;
}

.quote-form input::placeholder {
    color: #9aa5b4;
}

.quote-form select.is-placeholder {
    color: #9aa5b4;
}

.quote-form select option {
    color: #142033;
}

.quote-form textarea {
    min-height: 140px;
    resize: vertical;
}

.quote-form label {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #142033;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: #2e83ff;
    box-shadow: 0 0 0 4px rgba(46, 131, 255, 0.10);
    background: #ffffff;
    outline: none;
}

.service-wrapper {
    margin-bottom: 22px;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.service-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-card .card-content {
    border: 1px solid #dbe7f6;
    border-radius: 20px;
    background: #ffffff;
    padding: 22px 18px;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #142033;
}

.service-card:hover .card-content {
    border-color: #2e83ff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(46, 131, 255, 0.10);
}

.service-card input:checked + .card-content {
    border-color: #2e83ff;
    background: #eef6ff;
    box-shadow: 0 0 0 3px rgba(46, 131, 255, 0.08);
}


.quote-form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    border: 2px solid #c5d4e8;
    border-radius: 5px;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
    flex-shrink: 0;
    display: block;
}

.quote-form input[type="checkbox"]:checked {
    background: #2e83ff;
    border-color: #2e83ff;
}



.checkbox-row {
    margin-top: 12px;
}

.checkbox-row .input.checkbox {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 14px;
    background: #f7f9fc;
    border: 1px solid #dbe7f6;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.checkbox-row .input.checkbox:has(input:checked) {
    border-color: #2e83ff;
    background: #eef6ff;
}

.checkbox-row .input.checkbox label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #415168;
    line-height: 1;
    user-select: none;
    display: flex;
    align-items: center;
}


.quote-form .input.select:has(> .checkbox) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.quote-form .input.select:has(> .checkbox) > label:first-child {
    width: 100%;
    margin: 0 0 4px;
}

.quote-form .input.select:has(> .checkbox) .checkbox {
    flex: 0 0 100%;
}

.form-grid .full-width .input.select:has(> .checkbox) .checkbox {
    flex: 0 0 calc(50% - 4px);
}

.field-hint {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 400;
    color: #8a9ab0;
}

.quote-form .input.select:has(> .checkbox) .checkbox label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: #f7f9fc;
    border: 1px solid #dbe7f6;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #415168;
    transition: all 0.18s ease;
    user-select: none;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.quote-form .input.select:has(> .checkbox) .checkbox label:hover {
    border-color: #2e83ff;
}

.quote-form .input.select:has(> .checkbox) .checkbox label:has(input:checked) {
    background: #eef6ff;
    border-color: #2e83ff;
    color: #2e83ff;
}

.quote-form .input.select:has(> .checkbox) .checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 4px;
}

.form-error {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff3f3;
    border: 1px solid #f0c7c7;
    color: #a33a3a;
    font-weight: 600;
}

.subsection-title {
    margin: 8px 0 18px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5e718b;
}

.quote-summary-card {
    position: sticky;
    top: 24px;
}

.section-label {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2e83ff;
}

.quote-detail-block {
    padding: 20px 0;
    border-bottom: 1px solid #e7eef8;
}

.quote-detail-block:first-of-type {
    padding-top: 0;
}

.quote-detail-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.quote-detail-block h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.2;
    color: #142033;
}

.quote-detail-block p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #52627a;
}

.price-range {
    font-size: 28px;
    font-weight: 800;
    color: #142033;
    letter-spacing: -0.02em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    width: 100%;
    background: #2e83ff;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(46, 131, 255, 0.28);
}

.btn-primary:hover {
    background: #1f73ee;
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .quote-grid {
        grid-template-columns: 1fr;
    }

    .quote-summary-card {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .quote-hero {
        padding: 80px 0 54px;
    }

    .quote-main {
        padding: 64px 0;
    }

    .quote-form-card,
    .quote-summary-card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .quote-form fieldset {
        padding: 18px;
        border-radius: 18px;
    }

    .form-grid,
    .service-options {
        grid-template-columns: 1fr;
    }

    .price-range {
        font-size: 24px;
    }
}

.quote-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.quote-success-modal {
    background: white;
    width: 90%;
    max-width: 460px;
    padding: 32px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.quote-success-modal h2 {
    margin-bottom: 12px;
}

.quote-success-modal button {
    margin-top: 20px;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    background: #2f7df6;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.error-modal {
    display:block;
    background: white;
    width: 90%;
    max-width: 460px;
    padding: 32px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.error-modal h2 {
    margin-bottom: 12px;
    color: rgba(139, 0, 0);
}

.error-modal button {
    margin-top: 20px;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    background: #2f7df6;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.quote-breakdown {
    padding: 20px;
    border: 1px solid #ddd;
    background: #fafafa;
    border-radius: 8px;
    max-width: 400px;
}

.quote-breakdown h3 {
    margin-top: 0;
}

.final-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #2a7a2a;
}
.location-api-wrapper {
     position: relative;
 }

.location-api-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    overflow: hidden;
    z-index: 999;
}

.location-api-item {
    padding: 14px 18px;
    color: #1f2d3d;
    cursor: pointer;
    border-bottom: 1px solid #eef2f7;
}

.location-api-item:hover {
    background: #f5f9ff;
}
