@charset "utf-8";

/* ================================================================
   KA-PLOW — Estimate Page  v4.1
   ================================================================ */

/* ── PAGE BANNER ────────────────────────────────────────────── */
#top_bnnr {
    min-height: 28vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 5%;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.60) 100%),
        url('/site/content/estimate/top_bnr.jpg') center center / cover no-repeat,
        #1a1a1a;
    color: #fff;
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 2px 4px 6px rgba(0,0,0,0.5);
}
#top_bnnr::after { display: none; }

/* ── OUTER WRAPPER ──────────────────────────────────────────── */
#est-wrap {
    max-width: 960px;
    width: 90%;
    margin: 3rem auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── ALERTS ─────────────────────────────────────────────────── */
.est-alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.1rem;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.5;
}
.est-error  { background:#fff5f2; border:1px solid #D74100; color:#a33000; }
.est-error i { color: #D74100; }
.est-error a { color: #D74100; font-weight: 700; }

/* Success screen */
#est-success {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 1px solid #e0ddd8;
    border-radius: 8px;
}
#est-success i {
    font-size: 3.5rem;
    color: #2e9e50;
    margin-bottom: 1rem;
    display: block;
}
#est-success h2 {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 0 0 1rem;
}
#est-success p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}
#est-success a { color: #D74100; font-weight: 600; text-decoration: none; }

/* ── SECTIONS ────────────────────────────────────────────────── */
.est-section {
    background: #fff;
    border: 1px solid #e0ddd8;
    border-radius: 8px;
    overflow: visible;
}

.est-section-hd {
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: #fff;
    background:
        radial-gradient(ellipse at 10% 50%, rgba(90,90,90,0.55) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(60,60,60,0.6) 0%, transparent 45%),
        linear-gradient(160deg, #0d0d0d 0%, #222222 35%, #111111 65%, #1c1c1c 100%);
    padding: 0.9rem 1.4rem;
    border-left: 5px solid #D74100;
}
.est-section-hd i { color: #D74100; font-size: 1rem; }

.est-section-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.est-intro {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.93rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0ede8;
}

/* ── FORM FIELDS ─────────────────────────────────────────────── */
.est-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* 40 / 40 / 20 row for contact method + heard + returning */
.est-row-info {
    grid-template-columns: 2fr 2fr 1fr;
}

/* ── RADIO BUTTONS ───────────────────────────────────────────── */
.est-radio-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.6rem 0.85rem;
    background: #fafaf9;
    border: 1px solid #d0cdc8;
    border-radius: 5px;
    height: 100%;
    box-sizing: border-box;
}
.est-radio-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.93rem;
    color: #1a1a1a;
    cursor: pointer;
    user-select: none;
}
.est-radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #D74100;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── ADDRESS BLOCK ───────────────────────────────────────────── */
.est-addr-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.est-addr-top-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 0.7fr;
    gap: 1rem;
}
.est-addr-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* ── DISCOUNT ROW ────────────────────────────────────────────── */
#est-discount-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    padding: 0.65rem 1rem;
    background: #fafaf9;
    border: 1px solid #e0ddd8;
    border-radius: 6px;
}
.est-discount-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    margin-right: 0.5rem;
}
.est-discount-label i { color: #D74100; }
.est-discount-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: #999;
    font-style: italic;
}

/* ── AUTOCOMPLETE ────────────────────────────────────────────── */
#est-autocomplete-wrap {
    position: relative;
}
#est-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border: 1px solid #d0cdc8;
    border-top: none;
    border-radius: 0 0 6px 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    max-height: 240px;
    overflow-y: auto;
}
#est-suggestions li {
    padding: 0.6rem 0.9rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    font-style: italic;
    color: #1a1a1a;
    cursor: pointer;
    border-bottom: 1px solid #f0ede8;
    line-height: 1.4;
}
#est-suggestions li:last-child { border-bottom: none; }
#est-suggestions li:hover,
#est-suggestions li.ac-active {
    background: #fff3ee;
    color: #D74100;
}

/* Property type tag on card header */
.est-prop-card-addr {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    flex: 1;
}
.est-prop-type-tag {
    display: inline-block;
    background: #1a5c30;
    color: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 0.18rem 0.7rem;
    font-size: 0.72rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.est-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.est-full { width: 100%; }

.est-group label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}
.est-req { color: #D74100; }

.est-group input[type="text"],
.est-group input[type="email"],
.est-group input[type="tel"],
.est-group select,
.est-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.85rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.93rem;
    color: #1a1a1a;
    background: #fafaf9;
    border: 1px solid #d0cdc8;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.est-group input:focus,
.est-group select:focus,
.est-group textarea:focus {
    border-color: #D74100;
    box-shadow: 0 0 0 3px rgba(215,65,0,0.1);
    background: #fff;
}
.est-group select { cursor: pointer; }
.est-group textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

/* Field error */
.est-group input.est-field-error,
.est-group select.est-field-error {
    border-color: #D74100;
    background: #fff8f5;
    box-shadow: 0 0 0 3px rgba(215,65,0,0.15);
}
.est-field-msg {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: #D74100;
    font-weight: 600;
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── SERVICE GRID ────────────────────────────────────────────── */
#est-svc-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
    margin-top: 1rem;
}
#est-svc-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: #999;
    font-style: italic;
    margin-left: 0.4rem;
}

#est-svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    border: 1px solid #e0ddd8;
    border-radius: 6px;
    padding: 1rem;
    background: #fafaf9;
}

.est-svc-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.est-svc-group-hd {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #D74100;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #D74100;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.est-svc-group-hd i { font-size: 0.85rem; }

.est-svc-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
    transition: background 0.15s ease;
    user-select: none;
}
.est-svc-item:hover { background: #f0ede8; }
.est-svc-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: #D74100;
    cursor: pointer;
}

/* ── ADD PROPERTY BUTTON ─────────────────────────────────────── */
#est-add-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

#est-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2e9e50;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.65rem 1.3rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease;
}
#est-add-btn:hover { background: #236e3a; }
#est-add-btn i { font-size: 0.85rem; }

/* ── BUILDER MESSAGES ────────────────────────────────────────── */
.est-builder-msg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.83rem;
    color: #D74100;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: #fff8f5;
    border: 1px solid #f0c5b4;
    border-radius: 5px;
}
.est-no-props-msg { display: none; }

/* ── PROPERTY CARDS ──────────────────────────────────────────── */
#est-property-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.est-prop-card {
    border: 1px solid #d0cdc8;
    border-left: 4px solid #2e9e50;
    border-radius: 6px;
    background: #f8fff9;
    overflow: hidden;
}

.est-prop-card-hd {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    color: #1a1a1a;
    background: #edf7ef;
    border-bottom: 1px solid #cfe8d4;
}
.est-prop-card-hd i { color: #2e9e50; flex-shrink: 0; }
.est-prop-card-hd strong { font-weight: 700; }

.est-prop-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    transition: color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}
.est-prop-remove:hover { color: #D74100; background: #fee; }

/* Removing state — green → red transition */
.est-prop-card-removing {
    border-left-color: #D74100 !important;
    transition: border-left-color 0.4s ease;
}
.est-prop-card-removing .est-prop-card-hd {
    background: #fff0ee !important;
    border-bottom-color: #f5c5bc !important;
    transition: background 0.4s ease, border-bottom-color 0.4s ease;
}
.est-prop-card-removing .est-prop-card-hd i.fa-location-dot {
    color: #D74100 !important;
    transition: color 0.4s ease;
}
.est-prop-card-removing .est-prop-tags {
    background: #fff8f6;
    transition: background 0.4s ease;
}
.est-prop-card-removing .est-prop-tag {
    background: #fde8e4 !important;
    color: #a33000 !important;
    border-color: #f5c5bc !important;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Card meta row — type / frequency / start / discounts */
.est-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f2faf4;
    border-bottom: 1px solid #cfe8d4;
}
.est-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    background: #2e9e50;
    border: 1px solid #2e9e50;
    border-radius: 20px;
    padding: 0.18rem 0.65rem;
}
.est-card-meta-item i { font-size: 0.72rem; color: rgba(255,255,255,0.75); }
.est-card-meta-discount {
    color: #7c3a00;
    background: #fff3e0;
    border-color: #f5cfa0;
}
.est-card-meta-discount i { color: #D74100; }

/* Removing state for meta row */
.est-prop-card-removing .est-card-meta { background: #fff0ee !important; border-bottom-color: #f5c5bc !important; transition: background 0.4s ease; }
.est-prop-card-removing .est-card-meta-item { background: #fde8e4 !important; color: #a33000 !important; border-color: #f5c5bc !important; transition: all 0.4s ease; }
.est-prop-card-removing .est-card-meta-item i { color: #D74100 !important; }

.est-prop-tags {
    padding: 0.6rem 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.est-prop-tag {
    display: inline-block;
    background: #e8f5eb;
    color: #1d6b35;
    border: 1px solid #b8dfc4;
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ── BOTTOM ROW (captcha + submit) ──────────────────────────── */
#est-bottom-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 0;
    width: 100%;
}
#est-cap-left {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-left: -20px;
}
#est-cap-left label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
#est-cap-mid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
#est-cap-mid small {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: #666;
}
#est-cap-mid input {
    max-width: 200px;
}
#est-cap-right {
    display: flex;
    justify-content: flex-end;
}
#est-req-note {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 860px) {
    #est-svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    #est-wrap { width: 96%; }
    .est-row,
    .est-row-info { grid-template-columns: 1fr; }
    .est-addr-top-row { grid-template-columns: 1fr 1fr; }
    .est-addr-street { grid-column: 1 / -1; }
    .est-addr-bottom-row { grid-template-columns: 1fr; }
    #est-svc-grid { grid-template-columns: 1fr; }
    #est-bottom-row { grid-template-columns: 1fr; gap: 1rem; }
    #est-cap-left { margin-left: 0; }
    #est-cap-right { justify-content: flex-start; }
    #top_bnnr { font-size: clamp(1.4rem, 7vw, 2rem); min-height: 16vh; }
}
