/* ═══════════════════════════════════════════════
   WC Date Range & Enquiry — Frontend Styles
═══════════════════════════════════════════════ */

/* ── Shared block wrapper ─────────────────── */
.wcdr-block {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 28px;
    font-family: inherit;
}

.wcdr-block-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

/* ── Enquiry block accent ─────────────────── */
.wcdr-enquiry-block {
    border-top: 3px solid #2271b1;
    background: #fff;
}

/* ── Date row ─────────────────────────────── */
.wcdr-date-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.wcdr-date-col {
    flex: 1;
    min-width: 140px;
}

.wcdr-date-col label,
.wcdr-form-col label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.wcdr-cal-icon { font-size: 14px; }

/* ── Inputs ───────────────────────────────── */
.wcdr-date-input,
.wcdr-input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}

.wcdr-date-input { cursor: pointer; }

.wcdr-date-input:focus,
.wcdr-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,.1);
    outline: none;
}

.wcdr-date-input::placeholder,
.wcdr-input::placeholder { color: #bbb; font-style: italic; }

.wcdr-field-error {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 3px rgba(229,57,53,.1) !important;
}

/* ── Summary bar ──────────────────────────── */
.wcdr-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f4fd;
    border: 1px solid #b3d9f5;
    border-radius: 6px;
    padding: 9px 14px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: #1a6496;
    font-weight: 600;
}

/* ── Checkbox ─────────────────────────────── */
.wcdr-cb-wrap {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ebebeb;
}

.wcdr-cb-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #444;
    font-weight: 500;
}

.wcdr-cb-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wcdr-cb-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #bbb;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s;
    position: relative;
}

.wcdr-cb-label input[type="checkbox"]:checked ~ .wcdr-cb-box {
    background: #2271b1;
    border-color: #2271b1;
}

.wcdr-cb-box::after {
    content: '';
    display: none;
    width: 5px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.wcdr-cb-label input[type="checkbox"]:checked ~ .wcdr-cb-box::after { display: block; }
.wcdr-cb-label:hover .wcdr-cb-box { border-color: #2271b1; }

/* ── GPS Message ──────────────────────────── */
.wcdr-gps-msg {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding: 11px 14px;
    margin-top: 12px;
    font-size: 13.5px;
    color: #5d4037;
    font-weight: 500;
    line-height: 1.6;
}

.wcdr-gps-msg a { color: #1565c0; font-weight: 700; text-decoration: underline; }
.wcdr-gps-msg a:hover { color: #0d47a1; }

/* ── Error / Success ──────────────────────── */
.wcdr-error {
    background: #fff2f2;
    border: 1px solid #f5c6c6;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 13.5px;
    color: #c0392b;
    font-weight: 500;
}

.wcdr-success {
    background: #f0fff4;
    border: 1px solid #a8e6c8;
    border-left: 4px solid #27ae60;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 14px;
    color: #1a5e33;
    font-weight: 600;
    margin-top: 14px;
    line-height: 1.6;
}

/* ── Price Breakdown Box ──────────────────────── */
.wcdr-price-breakdown {
    background: #f0f7ff;
    border: 1px solid #b3d4f5;
    border-left: 4px solid #2271b1;
    border-radius: 6px;
    padding: 14px 16px;
    margin-top: 12px;
    margin-bottom: 4px;
}

.wcdr-price-formula {
    font-size: 13.5px;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.6;
    font-family: monospace;
    background: #fff;
    border: 1px solid #dce8f7;
    border-radius: 4px;
    padding: 8px 12px;
}

.wcdr-price-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed #b3d4f5;
}

.wcdr-price-total-label {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcdr-price-total-value {
    font-size: 22px;
    font-weight: 800;
    color: #2271b1;
    line-height: 1;
}


.wcdr-enq-form { }

.wcdr-form-row { margin-bottom: 16px; }
.wcdr-form-row:last-child { margin-bottom: 0; }

.wcdr-form-row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wcdr-form-col label {
    font-size: 12.5px;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wcdr-form-col--full { grid-column: 1 / -1; }

.wcdr-req {
    color: #e53935;
    font-size: 14px;
    line-height: 1;
}

/* ── Submit button ────────────────────────── */
.wcdr-submit-row { margin-top: 20px; padding-top: 18px; border-top: 1px solid #ebebeb; }

.wcdr-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.wcdr-submit-btn:hover { background: #135e96; }
.wcdr-submit-btn:active { transform: scale(.98); }
.wcdr-submit-btn:disabled { background: #a5c3e0; cursor: not-allowed; }

/* ── Flatpickr overrides ──────────────────── */
.flatpickr-calendar {
    border-radius: 8px !important;
    box-shadow: 0 8px 28px rgba(0,0,0,.13) !important;
    font-family: inherit !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover { background: #2271b1 !important; border-color: #2271b1 !important; }

.flatpickr-day.inRange { background: #d0e8f5 !important; border-color: #d0e8f5 !important; color: #1a6496 !important; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 600px) {
    .wcdr-date-row,
    .wcdr-form-row--2col { grid-template-columns: 1fr; flex-direction: column; }
    .wcdr-block { padding: 16px; }
}
