/* DCR Booking — Public booking form styles
   Modern, clean, mobile-first design.
   Brand: navy #1A3552 + green #6FA659 from the DCR logo
*/

.dcr-booking-form {
    --dcr-navy: #1A3552;
    --dcr-navy-dark: #0F2438;
    --dcr-green: #6FA659;
    --dcr-green-dark: #5A8A47;
    --dcr-green-light: #E8F2E2;
    --dcr-text: #1A3552;
    --dcr-muted: #5A6B7A;
    --dcr-border: #E0E5EB;
    --dcr-bg-soft: #F4F6F9;
    --dcr-card-shadow: 0 1px 3px rgba(26, 53, 82, 0.05), 0 1px 2px rgba(26, 53, 82, 0.08);
    --dcr-card-shadow-hover: 0 8px 24px rgba(26, 53, 82, 0.12);

    max-width: 1080px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dcr-text);
    line-height: 1.5;
    box-sizing: border-box;
}
.dcr-booking-form *, .dcr-booking-form *:before, .dcr-booking-form *:after { box-sizing: border-box; }

/* ── Hero ── */
.dcr-hero {
    text-align: center;
    margin-bottom: 32px;
}
.dcr-hero h1 {
    font-size: 32px;
    color: var(--dcr-navy);
    margin: 0 0 8px;
    font-weight: 700;
    line-height: 1.2;
}
.dcr-hero-sub {
    color: var(--dcr-muted);
    margin: 0;
    font-size: 16px;
}
.dcr-pin {
    display: inline-block;
    margin-right: 4px;
}

/* ── Date panel ── */
.dcr-date-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--dcr-border);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: var(--dcr-card-shadow);
    margin-bottom: 40px;
}
.dcr-date-field {
    flex: 1;
}
.dcr-date-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--dcr-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.dcr-date-field input[type="datetime-local"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--dcr-border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--dcr-text);
    font-family: inherit;
    background: #fff;
}
.dcr-date-field input:focus {
    outline: none;
    border-color: var(--dcr-green);
    box-shadow: 0 0 0 3px rgba(111, 166, 89, 0.15);
}
.dcr-date-arrow {
    color: var(--dcr-muted);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 18px;
}
@media (max-width: 600px) {
    .dcr-date-panel { flex-direction: column; gap: 12px; }
    .dcr-date-arrow { transform: rotate(90deg); margin: 0; }
}

/* ── Section headings ── */
.dcr-section-heading {
    font-size: 22px;
    color: var(--dcr-navy);
    margin: 40px 0 6px;
    font-weight: 700;
}
.dcr-section-sub {
    color: var(--dcr-muted);
    margin: 0 0 20px;
    font-size: 14px;
}

/* ── Vehicle card grid ── */
.dcr-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.dcr-vehicle-card {
    background: #fff;
    border: 1px solid var(--dcr-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.dcr-vehicle-card:hover {
    border-color: var(--dcr-green);
    transform: translateY(-3px);
    box-shadow: var(--dcr-card-shadow-hover);
}
.dcr-vehicle-card.selected {
    border-color: var(--dcr-green);
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(111, 166, 89, 0.15), var(--dcr-card-shadow-hover);
}
.dcr-vehicle-image {
    width: 100%;
    height: 180px;
    background: var(--dcr-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.dcr-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.dcr-no-image {
    color: var(--dcr-muted);
    font-size: 13px;
    font-style: italic;
}
.dcr-vehicle-info {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.dcr-vehicle-info h3 {
    margin: 0 0 8px;
    color: var(--dcr-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
.dcr-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--dcr-muted);
    margin-bottom: 14px;
}
.dcr-vehicle-specs span {
    background: var(--dcr-bg-soft);
    padding: 3px 8px;
    border-radius: 4px;
}
.dcr-vehicle-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 8px 0 14px;
}
.dcr-price-from {
    font-size: 12px;
    color: var(--dcr-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dcr-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--dcr-green-dark);
    line-height: 1;
}
.dcr-price-unit {
    font-size: 13px;
    color: var(--dcr-muted);
}
.dcr-vehicle-select-state {
    margin-top: auto;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--dcr-border);
}
.dcr-select-cta {
    font-size: 13px;
    color: var(--dcr-muted);
    font-weight: 600;
}
.dcr-selected-tag {
    display: none;
    color: var(--dcr-green-dark);
    font-weight: 700;
    font-size: 14px;
}
.dcr-vehicle-card.selected .dcr-select-cta { display: none; }
.dcr-vehicle-card.selected .dcr-selected-tag { display: inline; }

/* ── Live quote bar ── */
.dcr-quote-bar {
    background: var(--dcr-green-light);
    border-left: 4px solid var(--dcr-green);
    padding: 16px 24px;
    border-radius: 8px;
    margin: 20px 0 30px;
}
.dcr-quote-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}
.dcr-quote-vehicle { color: var(--dcr-navy); font-size: 15px; }
.dcr-quote-detail { color: var(--dcr-muted); font-size: 14px; flex: 1; }
.dcr-quote-total {
    color: var(--dcr-green-dark);
    font-size: 22px;
    font-weight: 700;
}

/* ── Form rows ── */
.dcr-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.dcr-col { flex: 1; min-width: 0; }
@media (max-width: 600px) {
    .dcr-row { flex-direction: column; gap: 12px; }
}

.dcr-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dcr-navy);
}
.dcr-optional {
    color: var(--dcr-muted);
    font-weight: 400;
    font-size: 12px;
}
.dcr-form input[type="text"],
.dcr-form input[type="email"],
.dcr-form input[type="tel"],
.dcr-form input[type="datetime-local"],
.dcr-form textarea,
.dcr-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--dcr-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--dcr-text);
    background: #fff;
}
.dcr-form input:focus,
.dcr-form textarea:focus,
.dcr-form select:focus {
    outline: none;
    border-color: var(--dcr-green);
    box-shadow: 0 0 0 3px rgba(111, 166, 89, 0.15);
}
.dcr-form textarea { resize: vertical; min-height: 80px; }
.dcr-form input[name="website"] { display: none; }

/* ── Submit ── */
.dcr-submit-row {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--dcr-border);
}
.dcr-submit-button {
    background: var(--dcr-green);
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
    font-family: inherit;
}
.dcr-submit-button:hover:not(:disabled) {
    background: var(--dcr-green-dark);
    transform: translateY(-1px);
}
.dcr-submit-button:active { transform: translateY(0); }
.dcr-submit-button:disabled { opacity: 0.6; cursor: not-allowed; }
.dcr-disclaimer {
    margin-top: 12px;
    font-size: 13px;
    color: var(--dcr-muted);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Success / error ── */
.dcr-form-success {
    background: #fff;
    border: 2px solid var(--dcr-green);
    border-radius: 16px;
    padding: 48px 36px;
    text-align: center;
    box-shadow: var(--dcr-card-shadow);
    max-width: 540px;
    margin: 40px auto;
}
.dcr-success-icon {
    width: 72px;
    height: 72px;
    background: var(--dcr-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}
.dcr-form-success h2 {
    color: var(--dcr-navy);
    margin: 0 0 12px;
    font-size: 26px;
}
.dcr-success-ref {
    background: var(--dcr-green-light);
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-block;
    margin: 0 0 16px;
    color: var(--dcr-navy);
}
.dcr-ref { font-size: 18px; color: var(--dcr-green-dark); margin-left: 8px; }

.dcr-form-error {
    background: #FDE0E0;
    border-left: 4px solid #A32020;
    padding: 12px 16px;
    margin-top: 16px;
    border-radius: 8px;
    color: #A32020;
}
