/* ============================================================
   WPForms Termin Addon – Frontend Styles
   ============================================================ */

.wpft-widget {
    max-width: 680px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    color: #2d2d2d;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border: 1px solid #e5e7eb;
}

/* ── Kalender ─────────────────────────────────────────────── */

.wpft-calendar-wrap {
    display: inline-block;
    min-width: 300px;
}

.wpft-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.wpft-cal-nav {
    background: none;
    border: 1px solid #dde1e7;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}

.wpft-cal-nav:hover {
    background: #f0f4ff;
    color: #2563eb;
    border-color: #2563eb;
}

.wpft-cal-title {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.wpft-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.wpft-cal-weekday {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    padding: 4px 0 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wpft-cal-day {
    padding: 8px 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .12s, color .12s;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    user-select: none;
}

.wpft-cal-day:hover:not(.wpft-cal-unavail):not(.wpft-cal-empty) {
    background: #eff6ff;
    color: #2563eb;
}

.wpft-cal-unavail {
    color: #ccc;
    cursor: default;
    font-weight: 400;
}

.wpft-cal-empty {
    cursor: default;
}

.wpft-cal-selected {
    background: #2563eb !important;
    color: #fff !important;
    font-weight: 700;
}

/* ── Zeitslots ────────────────────────────────────────────── */

.wpft-slots-wrap {
    margin-top: 20px;
}

.wpft-slots-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
}

.wpft-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wpft-slot-btn {
    background: #fff;
    border: 1.5px solid #dde1e7;
    border-radius: 7px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
    cursor: pointer;
    transition: all .15s;
}

.wpft-slot-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.wpft-slot-selected {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

/* ── Auswahl-Anzeige ─────────────────────────────────────── */

.wpft-selection-display {
    margin-top: 16px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #166534;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 500px) {
    .wpft-calendar-wrap {
        padding: 14px;
        min-width: auto;
        width: 100%;
    }

    .wpft-cal-day {
        padding: 6px 2px;
        font-size: 13px;
    }

    .wpft-slot-btn {
        padding: 7px 12px;
        font-size: 13px;
    }
}
