/* DT Contact – front.css v1.3 */

.dtc-scope {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 980px;
    margin: 24px auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    color: #1f2430;
}
.dtc-scope *, .dtc-scope *::before, .dtc-scope *::after { box-sizing: border-box; }

/* ── Notices ─────────────────────────────────────────────────────────────── */
.dtc-notice {
    padding: 14px 18px; border-radius: 10px;
    margin-bottom: 20px; font-weight: 500; font-size: 0.95rem;
}
.dtc-success { background:#ecfdf5; border:1px solid #6ee7b7; color:#065f46; }
.dtc-error   { background:#fef2f2; border:1px solid #fca5a5; color:#991b1b; }
.dtc-pending { background:#fffbeb; border:1px solid #fbbf24; color:#92400e; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.dtc-cal-wrap {
    display: flex; flex-wrap: nowrap; gap: 40px; align-items: flex-start;
}
.dtc-cal-left  { flex: 1.3; min-width: 0; }
.dtc-cal-right { flex: 1;   min-width: 0; }

/* ── Calendar header ─────────────────────────────────────────────────────── */
.dtc-cal-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 20px;
}
.dtc-month-label { font-weight: 800; font-size: 1.25rem; color: #1f2430; }
.dtc-nav {
    border: 1px solid #e5e7eb; background: #fff; border-radius: 8px;
    width: 36px; height: 36px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #555; padding: 0; line-height: 1;
}
.dtc-nav:hover { background: #f3f4f6; }

/* ── Weekday labels ──────────────────────────────────────────────────────── */
.dtc-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 8px; text-align: center; margin-bottom: 10px;
    font-size: 0.85rem; font-weight: 700; color: #6b7280;
}
.dtc-weekdays span { display: block; text-align: center; }

/* ── Day grid ────────────────────────────────────────────────────────────── */
.dtc-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
}
.dtc-day {
    display: block; width: 100%;
    /* NO border by default — only available days get one */
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1rem; font-weight: 600;
    cursor: default; color: #1f2430;
    transition: all 0.2s; line-height: 1; text-align: center;
}

/* Out-of-month: invisible */
.dtc-day.is-out { color: #d1d5db; border-color: transparent; }

/* Past in-month: greyed, no border, but still clickable to show "no times" */
.dtc-day.is-past {
    color: #9ca3af; border-color: transparent;
    background: transparent; cursor: pointer; opacity: 0.5;
}

/* Unavailable in-month: same — no border, subtle, still clickable */
.dtc-day.is-unavailable {
    color: #9ca3af; border-color: transparent;
    background: transparent; cursor: pointer;
}

/* Available: gets the visible border box */
.dtc-day.is-available {
    border-color: #e5e7eb; background: #fff; cursor: pointer;
}
.dtc-day.is-available:hover {
    border-color: #a987c2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Selected (any day) */
.dtc-day.is-selected.is-available {
    background-color: rgba(169,135,194,0.2);
    border-color: #a987c2;
    color: #a987c2;
    outline: 2px solid #a987c2;
}
.dtc-day.is-selected.is-unavailable,
.dtc-day.is-selected.is-past {
    background: #f3f4f6;
    border-color: #d1d5db;
    outline: 1px solid #d1d5db;
}

.dtc-tz-label { font-size: 0.78rem; color: #9ca3af; margin-top: 12px; }

/* ── Right panel ─────────────────────────────────────────────────────────── */

/* Selected date heading */
.dtc-selected-date {
    font-weight: 700; font-size: 1rem; color: #1f2430;
    margin-bottom: 12px; display: none;
}

.dtc-prompt {
    text-align: center; color: #6b7280;
    padding: 40px 20px; background: #f9fafb;
    border-radius: 12px; font-size: 0.95rem; margin: 0 0 12px;
}

.dtc-times {
    display: flex; flex-direction: column; gap: 10px;
    max-height: 420px; overflow-y: auto;
    padding-right: 5px; margin-bottom: 16px;
}
.dtc-times::-webkit-scrollbar       { width: 10px; }
.dtc-times::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.dtc-times::-webkit-scrollbar-thumb { background: #a987c2; border-radius: 10px; border: 2px solid #f1f1f1; }
.dtc-times::-webkit-scrollbar-thumb:hover { background: #8e6ba8; }

.dtc-time-opt {
    display: flex; align-items: center; gap: 12px;
    border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 14px 18px; cursor: pointer;
    transition: all 0.2s; background: #fff;
}
.dtc-time-opt:hover { border-color: #a987c2; box-shadow: 0 2px 8px rgba(169,135,194,0.15); }
.dtc-time-opt input[type="radio"] { margin:0; accent-color:#a987c2; transform:scale(1.2); flex-shrink:0; }
.dtc-time-opt span { font-weight: 600; font-size: 1rem; color: #1f2430; }

/* ── Booking form ────────────────────────────────────────────────────────── */
.dtc-book-form { border-top: 1px solid #e5e7eb; padding-top: 20px; margin-top: 4px; }
.dtc-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.dtc-fields label {
    display: flex; flex-direction: column; gap: 5px;
    font-size: 0.95rem; font-weight: 700; color: #374151;
}
.dtc-fields input, .dtc-fields textarea {
    width: 100%; padding: 12px 16px;
    border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 1rem; font-family: inherit; background: #fff;
    transition: border-color 0.15s;
}
.dtc-fields input:focus, .dtc-fields textarea:focus {
    outline: none; border-color: #a987c2;
    box-shadow: 0 0 0 2px rgba(169,135,194,0.2);
}

/* ── Button ──────────────────────────────────────────────────────────────── */
.dtc-btn {
    width: 100%; padding: 16px;
    background: #a987c2; color: #fff; border: none;
    border-radius: 12px; font-size: 1.1rem; font-weight: 700;
    cursor: pointer; transition: background 0.2s; font-family: inherit;
}
.dtc-btn:hover:not(:disabled) { background: #946da3; }
.dtc-btn:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }

/* ── Contact form ────────────────────────────────────────────────────────── */
.dtc-contact-form .dtc-fields,
.dtc-contact-form .dtc-btn { max-width: 560px; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .dtc-cal-wrap { flex-direction: column; }
    .dtc-scope    { padding: 20px 16px; }
    .dtc-cal-left, .dtc-cal-right { flex: none; width: 100%; }
}

/* ── Time selection summary box ──────────────────────────────────────────── */
.dtc-selection-summary { margin-top: 4px; }

.dtc-summary-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f5ff;
    border: 1px solid #a987c2;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    gap: 12px;
}
.dtc-summary-text {
    line-height: 1.5;
    font-size: 0.95rem;
    color: #1f2430;
}
.dtc-summary-text strong {
    font-size: 1rem;
    color: #3d2a52;
}
.dtc-change-time {
    background: none;
    border: 1px solid #a987c2;
    border-radius: 6px;
    color: #a987c2;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}
.dtc-change-time:hover {
    background: #f0e8ff;
}
