
/* =========================
   MODAL BACKDROP
========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);

    display: none;
    justify-content: center;
    align-items: center;

    padding: 20px;

    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

/* =========================
   MODAL CONTAINER
========================= */

.modal-box {
    width: 100%;
    max-width: 520px;

    background: #fff;

    border-radius: 14px;

    padding: 22px;

    max-height: 85vh;
    overflow-y: auto;

    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    position: relative;
}

/* =========================
   CLOSE BUTTON
========================= */

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f1f5f9;
    color: #0f172a;

    font-size: 18px;
    font-weight: 700;

    border: none;
    cursor: pointer;

    transition: 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

/* =========================
   STEP SYSTEM FIX
========================= */

.form-step {
    display: none;
    flex-direction: column;
}

.form-step.active {
    display: flex;
}

/* BODY */
.step-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* FOOTER ALWAYS ANCHORED */
.step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 18px;
    padding-top: 14px;

    border-top: 1px solid #f1f5f9;
}

/* =========================
   TYPOGRAPHY
========================= */

h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

/* =========================
   FORM ELEMENTS
========================= */

label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

input,
select {
    width: 100%;
    padding: 10px 12px;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    font-size: 14px;

    outline: none;
}

input:focus,
select:focus {
    border-color: #14b8a6;
}

/* =========================
   GRID HELPERS
========================= */

.form-group {
    margin-bottom: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* =========================
   SERVICES STRIPES (FINAL)
========================= */

.service-stripes {
    display: flex;
    flex-direction: column;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    overflow: hidden;
}

/* ROW */
.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 14px;

    font-size: 14px;
    color: #0f172a;

    cursor: pointer;

    background: #fff;

    border-bottom: 1px solid #f1f5f9;

    transition: 0.15s ease;
}

.service-row:last-child {
    border-bottom: none;
}

/* hover */
.service-row:hover {
    background: #f8fafc;
}

/* checkbox */
.service-row input {
    width: 18px;
    height: 18px;

    accent-color: #14b8a6;
    cursor: pointer;
}

/* selected state */
.service-row:has(input:checked) {
    background: #e6fffb;
}

/* =========================
   QUOTE BOX
========================= */

.quote-box {
    margin-top: 14px;
    padding: 14px;

    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.quote-price {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-box {
        max-width: 92%;
    }
}