/* Quick Quote - the form is the page, so it gets room to breathe. */

.ask-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.ask-wide { grid-column: 1 / -1; }

.ask-grid label {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.ask-grid input,
.ask-grid select,
.ask-grid textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    background: #262626;
    color: #e5e7eb;
    border: 1px solid #3f3f3f;
    border-radius: 0.5rem;
    font: inherit;
}

.ask-grid textarea { resize: vertical; min-height: 5rem; }
.ask-grid input:focus,
.ask-grid select:focus,
.ask-grid textarea:focus { outline: none; border-color: #4caf50; }
.ask-grid .muted { margin-top: 0.35rem; }

.ask-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Address completions, the same list the zone maps show. */
#addressField { position: relative; }
.suggestions {
    display: none;
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    background: #1f1f1f;
    border: 1px solid #3f3f3f;
    border-radius: 0.5rem;
    overflow: hidden;
}
.suggestion-item { padding: 0.5rem 0.7rem; cursor: pointer; font-size: 0.9rem; }
.suggestion-item:hover, .suggestion-item.selected { background: #2d5016; }

/* ------------------------------------------------------------------ result */
.quote-card { margin-top: 1.5rem; }

.quote-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.quote-yard { font-size: 1.1rem; font-weight: 700; color: #f0f0f0; }
.quote-total { font-size: 1.6rem; font-weight: 700; color: #86efac; }

.quote-lines {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    color: #d1d5db;
    background: #171717;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.quote-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.5rem 1rem; }
.figure { font-size: 0.875rem; color: #d1d5db; }
.figure span { display: block; color: #9ca3af; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }

.second-yard { opacity: 0.85; }

.ask-check { display: flex; flex-direction: column; justify-content: center; }
.ask-check label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.95rem;
    color: #e5e7eb;
    margin: 0;
}
.ask-check input { width: auto; }

/* ------------------------------------------------------------- copy for email */
.copy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 0.4rem;
}

.copy-text {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #e5e7eb;
    background: #171717;
    border: 1px solid #3f3f3f;
    border-radius: 0.5rem;
    padding: 0.75rem;
    resize: vertical;
}
.copy-text:focus { outline: none; border-color: #4caf50; }

.btn-small { padding: 0.25rem 0.6rem; font-size: 0.8rem; }

/* The paste box: the whole message goes in, and the form below fills itself. */
.paste-box textarea { width: 100%; }
.paste-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 0.5rem; }
.paste-actions .muted { flex: 1 1 16rem; }
