/* Instant price on the work request form (new_request_instant.tpl).
   Builds on quote-wizard.css (lh-* classes and --lh-* colors). */

.ip-map {
    height: 220px;
    border-radius: var(--lh-radius);
    overflow: hidden;
    background: #e5e7eb;
    margin-bottom: 14px;
}

.ip-measure {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--lh-radius-sm);
    background: var(--lh-primary-light);
    color: var(--lh-text);
    font-size: 15px;
}
.ip-measure i { color: var(--lh-primary); }

/* Size picker */
.ip-sizes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.ip-size {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px;
    border: 1.5px solid var(--lh-border);
    border-radius: var(--lh-radius);
    background: #fff;
    font-family: var(--lh-font);
    color: var(--lh-text);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.ip-size i { color: var(--lh-primary); font-size: 18px; margin-bottom: 2px; }
.ip-size strong { font-size: 15px; font-weight: 600; }
.ip-size span { font-size: 12px; color: var(--lh-text-muted); }
.ip-size:hover { border-color: var(--lh-primary); }
.ip-size.selected { border-color: var(--lh-primary); box-shadow: 0 0 0 3px var(--lh-primary-glow); }

/* Price */
.ip-freq { margin-bottom: 14px; }
.ip-price-box {
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius);
    padding: 14px 16px;
}
.ip-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 15px;
    color: var(--lh-text);
}
.ip-price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.ip-price strong { font-size: 28px; font-weight: 700; color: var(--lh-text); }
.ip-price small { font-size: 12px; color: var(--lh-text-muted); }
.ip-addons-title {
    margin: 14px 0 6px;
    padding-top: 12px;
    border-top: 1px solid var(--lh-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--lh-text-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.ip-addon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--lh-text);
    cursor: pointer;
}
.ip-addon input { width: 18px; height: 18px; accent-color: var(--lh-primary); }
.ip-addon-price { margin-left: auto; color: var(--lh-text-muted); }

/* Start date */
.ip-start { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; font-size: 14px; color: var(--lh-text); }
.ip-start-opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.lh-field .ip-start-opt input { width: auto; height: auto; margin: 0; padding: 0; box-shadow: none; accent-color: var(--lh-primary); }

/* Agree + sign */
.ip-terms {
    background: #f9fafb;
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    margin-bottom: 10px;
}
.ip-terms p { margin: 0 0 8px; }
.ip-terms p:last-child { margin-bottom: 0; }
.ip-terms #ip-summary { font-weight: 600; color: var(--lh-text); }
.ip-terms a { color: inherit; font-weight: 600; text-decoration: underline; }
.ip-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--lh-text);
    cursor: pointer;
    margin-bottom: 4px;
}
.ip-agree input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--lh-primary); }

.ip-sig-wrap {
    position: relative;
    height: 140px;
    border: 1.5px dashed var(--lh-border);
    border-radius: var(--lh-radius-sm);
    background: #fff;
}
.ip-sig-wrap canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.ip-sig-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lh-text-light);
    font-size: 13px;
    pointer-events: none;
}
.ip-sig-clear {
    position: absolute;
    right: 8px;
    bottom: 6px;
    border: 0;
    background: none;
    font-family: var(--lh-font);
    font-size: 12px;
    color: var(--lh-text-muted);
    text-decoration: underline;
    cursor: pointer;
}

.ip-fine-print {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--lh-text-light);
}

/* Terms popup */
.ip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ip-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.ip-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
}
.ip-modal-head button { border: 0; background: none; font-size: 22px; color: #888; cursor: pointer; }
.ip-modal-body { padding: 18px; overflow-y: auto; font-size: 13px; line-height: 1.7; color: #444; white-space: pre-wrap; }

@media (max-width: 480px) {
    .lh-card { padding: 24px 16px 20px; }
    .ip-price strong { font-size: 24px; }
}
