/* =========================================================
   Window Cleans – Instant Quote Widget
   Palette: Navy #1B3A5C | Sky #2E86C1 | Ice #E8F4FD
            Green #22A96E | White #FFFFFF
   ========================================================= */

/* ---------- Reset / Container ---------- */
.wciq-wrap *,
.wciq-wrap *::before,
.wciq-wrap *::after {
    box-sizing: border-box;
}
.wciq-wrap {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #1B3A5C;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 32px;
}

/* ---------- Label ---------- */
.wciq-label {
    display: block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1B3A5C;
    margin-bottom: 12px;
}

/* ---------- Search input row ---------- */
.wciq-input-row {
    position: relative;
}
.wciq-input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    color: #1B3A5C;
    border: 2px solid #2E86C1;
    border-radius: 8px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}
.wciq-input:focus {
    border-color: #1B3A5C;
    box-shadow: 0 0 0 3px rgba(46,134,193,.18);
}
.wciq-input::placeholder {
    color: #9ab0c5;
}

/* ---------- Spinner (input) ---------- */
.wciq-spinner {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #c8d8e8;
    border-top-color: #2E86C1;
    border-radius: 50%;
    animation: wciq-spin .7s linear infinite;
    display: none;
}
.wciq-spinner.is-visible { display: block; }
@keyframes wciq-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ---------- Dropdown ---------- */
.wciq-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #2E86C1;
    border-radius: 8px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(27,58,92,.12);
    max-height: 280px;
    overflow-y: auto;
}
.wciq-dropdown[hidden] { display: none; }
.wciq-dropdown li {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s;
    line-height: 1.4;
}
.wciq-dropdown li:hover,
.wciq-dropdown li[aria-selected="true"] {
    background: #E8F4FD;
    color: #1B3A5C;
}
.wciq-dropdown li .wciq-dd-city {
    color: #2E86C1;
    font-size: 12px;
    display: block;
    margin-top: 1px;
}

/* ---------- Notices ---------- */
.wciq-notice {
    font-size: 14px;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 10px;
}
.wciq-notice[hidden] { display: none; }
.wciq-notice--warn {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    color: #7b5800;
}
.wciq-notice--error {
    background: #fdecea;
    border-left: 4px solid #e53935;
    color: #b71c1c;
}

/* ---------- Result section ---------- */
.wciq-result[hidden] { display: none; }
.wciq-result { margin-top: 28px; }

/* Address card */
.wciq-address-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #E8F4FD;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.wciq-address-icon { font-size: 22px; line-height: 1; margin-top: 2px; }
.wciq-result-address {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1B3A5C;
}
.wciq-result-meta {
    font-size: 13px;
    color: #2E86C1;
    margin-top: 3px;
}

/* Custom quote message */
.wciq-custom-quote[hidden] { display: none; }
.wciq-custom-quote {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 15px;
    color: #7b5800;
}
.wciq-custom-quote p { margin: 0; }

/* ---------- Pricing section ---------- */
.wciq-pricing[hidden] { display: none; }
.wciq-pricing-heading {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1B3A5C;
    margin: 0 0 16px;
}

.wciq-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 540px) {
    .wciq-pricing-grid { grid-template-columns: 1fr; }
}

/* Price card */
.wciq-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 2px solid #c8d8e8;
    border-radius: 12px;
    padding: 20px 14px 18px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    text-align: center;
    user-select: none;
}
.wciq-price-card:hover {
    border-color: #2E86C1;
    box-shadow: 0 4px 16px rgba(46,134,193,.15);
}
.wciq-price-card.is-selected {
    border-color: #22A96E;
    box-shadow: 0 4px 20px rgba(34,169,110,.2);
    transform: translateY(-2px);
}
.wciq-radio { position: absolute; opacity: 0; width: 0; height: 0; }
.wciq-price-freq {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #1B3A5C;
    letter-spacing: .3px;
    margin-bottom: 10px;
}
.wciq-price-amount {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #2E86C1;
    line-height: 1;
    margin-bottom: 4px;
}
.wciq-price-card.is-selected .wciq-price-amount { color: #22A96E; }
.wciq-price-sub {
    font-size: 11px;
    color: #7a96ac;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.wciq-check-icon {
    display: none;
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 16px;
    color: #22A96E;
    font-weight: 700;
}
.wciq-price-card.is-selected .wciq-check-icon { display: block; }

/* ---------- Request form ---------- */
.wciq-form-wrap[hidden] { display: none; }
.wciq-form-wrap {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1.5px solid #E8F4FD;
}
.wciq-form-heading {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1B3A5C;
    margin: 0 0 14px;
}
.wciq-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) {
    .wciq-form-grid { grid-template-columns: 1fr; }
}
.wciq-field { display: flex; flex-direction: column; }
.wciq-field--full { grid-column: 1 / -1; }
.wciq-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #1B3A5C;
    margin-bottom: 5px;
}
.wciq-field-input {
    padding: 10px 12px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    color: #1B3A5C;
    border: 1.5px solid #c8d8e8;
    border-radius: 6px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.wciq-field-input:focus {
    border-color: #2E86C1;
    box-shadow: 0 0 0 3px rgba(46,134,193,.15);
}

/* ---------- Buttons ---------- */
.wciq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    margin-top: 16px;
    letter-spacing: .3px;
}
.wciq-btn--green {
    background: #22A96E;
    color: #fff;
}
.wciq-btn--green:hover { background: #1c8c5b; transform: translateY(-1px); }
.wciq-btn--green:disabled { background: #9ab; cursor: not-allowed; transform: none; }

.wciq-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wciq-spin .7s linear infinite;
}
.wciq-btn-spinner[hidden] { display: none; }

.wciq-reset-btn {
    background: none;
    border: none;
    color: #2E86C1;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 20px;
    display: block;
    text-decoration: underline;
    font-family: 'Open Sans', Arial, sans-serif;
}
.wciq-reset-btn:hover { color: #1B3A5C; }

/* ---------- Links ---------- */
.wciq-link { color: #2E86C1; text-decoration: underline; }
.wciq-link:hover { color: #1B3A5C; }
.wciq-link--green { color: #22A96E; }
.wciq-link--green:hover { color: #1c8c5b; }

/* ---------- Trust line (below submit button) ---------- */
.wciq-trust-line {
    margin: 10px 0 0;
    font-size: 12px;
    color: #9ab0c5;
    letter-spacing: .2px;
    line-height: 1.5;
}
.wciq-trust-check {
    color: #22A96E;
    font-weight: 700;
}

/* ---------- Soft bail-out contact link ---------- */
.wciq-soft-contact {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #eef3f7;
    font-size: 13px;
    color: #9ab0c5;
}
.wciq-custom-quote .wciq-soft-contact {
    margin-top: 10px;
    padding-top: 10px;
    border-top-color: #f0e8c0;
}

/* ---------- Success ---------- */
.wciq-success[hidden] { display: none; }
.wciq-success {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #e6f9f1;
    border: 1.5px solid #22A96E;
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 20px;
}
.wciq-success-icon {
    font-size: 26px;
    color: #22A96E;
    flex-shrink: 0;
    line-height: 1;
}
.wciq-success p {
    margin: 0;
    font-size: 15px;
    color: #155724;
    font-weight: 600;
}
