/* ============================================================
   Quote / Shipping form — Command dark theme.
   Loaded after theme-command.css, so CSS vars (--ink, --red…) exist.
   ============================================================ */

.qform { background: var(--ink); color: var(--silver); }

/* ---- hero header ---- */
.qform .qf-hero {
    position: relative;
    padding: 110px 0 64px;
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
    border-bottom: 1px solid rgba(202, 209, 207, .08);
    overflow: hidden;
}
.qform .qf-hero::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(60% 120% at 80% -10%, rgba(190, 56, 55, .18), transparent 60%);
    pointer-events: none;
}
.qform .qf-hero .wrap { position: relative; z-index: 1; max-width: 820px; }
.qform .qf-hero h1 { font-size: clamp(30px, 5vw, 46px); margin: 14px 0 16px; color: var(--white); }
.qform .qf-hero p { font-size: 16px; line-height: 1.7; max-width: 620px; color: var(--silver); }

/* ---- body layout: form + sticky sidebar ---- */
.qform .qf-body { padding: 56px 0 90px; }
.qform .qf-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
}

/* ---- cards / steps ---- */
.qform .qf-card {
    background: var(--ink-3);
    border: 1px solid rgba(202, 209, 207, .08);
    border-radius: 16px;
    padding: 30px 30px 14px;
    margin-bottom: 24px;
}
.qform .qf-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.qform .qf-step {
    flex: 0 0 auto;
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    font-family: var(--head); font-size: 16px; color: #fff;
    background: linear-gradient(135deg, var(--red), #8f2a29);
    box-shadow: 0 6px 16px -6px rgba(190, 56, 55, .7);
}
.qform .qf-card-head h3 { font-family: var(--body); font-weight: 700; font-size: 18px; color: var(--white); margin: 0; letter-spacing: 0; }
.qform .qf-card-head small { display: block; font-weight: 400; font-size: 13px; color: var(--silver-dim); margin-top: 2px; }

/* ---- fields ---- */
.qform .qf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.qform .qf-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qform .qf-field { margin-bottom: 18px; }
.qform .qf-field.full { grid-column: 1 / -1; }
.qform label {
    display: block;
    font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
    color: var(--silver); margin-bottom: 7px;
}
.qform input {
    width: 100%;
    background: var(--ink);
    border: 1px solid rgba(202, 209, 207, .14);
    border-radius: 9px;
    padding: 12px 14px;
    color: var(--white);
    font-family: var(--body); font-size: 14.5px;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
.qform input::placeholder { color: var(--silver-dim); opacity: .7; }
.qform input:focus {
    border-color: var(--red-bright);
    background: #141515;
    box-shadow: 0 0 0 3px rgba(190, 56, 55, .18);
}
.qform .qf-hint { font-size: 11.5px; color: var(--silver-dim); margin-top: 6px; }

/* group label for origin/destination blocks */
.qform .qf-block-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--head); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--red-bright); margin-bottom: 14px;
}
.qform .qf-block-label svg { width: 16px; height: 16px; }
.qform .qf-block { margin-bottom: 6px; }
.qform .qf-block + .qf-block { margin-top: 22px; padding-top: 22px; border-top: 1px dashed rgba(202, 209, 207, .12); }

/* ---- package rows ---- */
.qform .package {
    position: relative;
    border: 1px solid rgba(202, 209, 207, .1);
    border-radius: 12px;
    padding: 20px 18px 4px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, .015);
}
.qform .pkg-grid { display: grid; grid-template-columns: 110px 130px 1fr; gap: 16px; }
.qform .pkg-dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qform .removePackage {
    position: absolute; top: 12px;
    inset-inline-end: 12px;
    background: rgba(190, 56, 55, .14); color: var(--red-bright);
    border: 1px solid rgba(190, 56, 55, .3); border-radius: 8px;
    font-size: 12px; padding: 5px 11px; cursor: pointer; transition: .2s;
}
.qform .removePackage:hover { background: var(--red); color: #fff; }
.qform .removePackage.hidden { display: none; }
.qform .delete_button { margin: 4px 0 14px; }
.qform .delete_button.hidden { display: none; }

.qform .qf-add {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--silver);
    border: 1px dashed rgba(202, 209, 207, .28); border-radius: 9px;
    padding: 11px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .2s;
}
.qform .qf-add:hover { border-color: var(--red-bright); color: var(--white); background: rgba(190, 56, 55, .08); }

/* ---- submit ---- */
.qform .qf-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--red), #8f2a29);
    color: #fff; border: none; border-radius: 11px;
    padding: 16px; font-family: var(--head); font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
    cursor: pointer; transition: .25s; margin-top: 6px;
    box-shadow: 0 12px 26px -10px rgba(190, 56, 55, .7);
}
.qform .qf-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(190, 56, 55, .8); }

/* ---- success alert ---- */
.qform .qf-alert {
    background: rgba(46, 160, 90, .12); border: 1px solid rgba(46, 160, 90, .4);
    color: #79e2a6; border-radius: 10px; padding: 14px 18px; margin-bottom: 24px; font-size: 14px;
}

/* ---- sidebar ---- */
.qform .qf-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.qform .qf-summary, .qform .qf-help {
    background: var(--ink-3); border: 1px solid rgba(202, 209, 207, .08); border-radius: 16px; padding: 24px;
}
.qform .qf-summary h4, .qform .qf-help h4 {
    font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--white); margin: 0 0 16px; letter-spacing: 0;
}
.qform .qf-sum-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid rgba(202, 209, 207, .08); }
.qform .qf-sum-row:first-of-type { border-top: none; }
.qform .qf-sum-row span { color: var(--silver-dim); font-size: 13.5px; }
.qform .qf-sum-row b { color: var(--white); font-family: var(--head); font-size: 20px; }
.qform .qf-sum-empty { color: var(--silver-dim); font-size: 13.5px; line-height: 1.6; }
.qform .qf-help p { font-size: 13.5px; line-height: 1.65; color: var(--silver); margin-bottom: 16px; }
.qform .qf-help .btn-wa {
    display: inline-flex; align-items: center; gap: 9px; width: 100%; justify-content: center;
    background: #25d366; color: #fff; border-radius: 9px; padding: 12px; font-size: 13.5px; font-weight: 600; transition: .2s;
}
.qform .qf-help .btn-wa:hover { filter: brightness(1.07); }
.qform .qf-help .btn-wa svg { width: 18px; height: 18px; }

/* ---- map ---- */
.qform .qf-map { margin-top: 8px; }
.qform .qf-map h4 { font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--white); margin: 0 0 16px; }
.qform .qf-map .frame { border-radius: 16px; overflow: hidden; border: 1px solid rgba(202, 209, 207, .1); }
.qform .qf-map iframe { display: block; width: 100%; height: 360px; border: 0; filter: grayscale(.25) contrast(1.05); }

/* ---- responsive ---- */
@media (max-width: 980px) {
    .qform .qf-grid { grid-template-columns: 1fr; }
    .qform .qf-side { position: static; flex-direction: row; flex-wrap: wrap; }
    .qform .qf-side > * { flex: 1 1 260px; }
}
@media (max-width: 620px) {
    .qform .qf-row, .qform .qf-row.three, .qform .pkg-grid { grid-template-columns: 1fr; }
    .qform .qf-hero { padding: 96px 0 48px; }
    .qform .qf-side { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .qform .qf-submit:hover { transform: none; }
}
