/* ========================================
   BARANGAY — TENT PERMIT
   CSS/index_tent_permit_prompt.css
   Inherits base from index_residency_prompt.css
   ======================================== */

/* ── FIELD ───────────────────────────────────────────── */
.tp-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.tp-field.has-error .rbi-input,
.tp-field.has-error .rbi-select {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08);
    /* dark-theme-safe red tint */
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ── ERROR MESSAGES ──────────────────────────────────── */
.tp-error-msg {
    font-size: 0.73rem;
    color: #f87171;
    /* lighter red — readable on dark green backgrounds */
    font-weight: 500;
    min-height: 16px;
    display: block;
}

/* ── NARROW FIELD ────────────────────────────────────── */
.tp-field-narrow {
    max-width: 340px;
}

/* ── EXTRA ROW ANIMATION ─────────────────────────────── */
.tp-extra-row.tp-animate-in {
    animation: tpRowSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tpRowSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── DATE PICKER STYLING ─────────────────────────────── */
input[type="date"].rbi-input {
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    line-height: 1.5;
    color-scheme: dark;
    /* tells the browser to render the date picker in dark mode */
}

/* Calendar icon */
input[type="date"].rbi-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.5;
    filter: invert(1);
    /* flips the icon white so it shows on dark input backgrounds */
    transition: opacity 0.2s ease-in-out;
}

input[type="date"].rbi-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}