/* Card wrapper */
.mentevent-booking-card {
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.mentevent-heading .title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #1f3d36;
    margin-bottom: 2px;
}

.mentevent-heading .subtitle {
    color: #5a6b65;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.mentevent-booking-fields {
    border: none;
    padding: 0;
    margin: 0;
}

.mentevent-booking-fields .screen-reader-text {
    position: absolute;
    left: -9999px;
}

.mentevent-field {
    margin-bottom: 14px;
}

.mentevent-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f3d36;
}

.mentevent-field input[type="text"],
.mentevent-field input[type="time"],
.mentevent-field input[type="date"],
.mentevent-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cdd5d2;
    border-radius: 10px;
    font-size: 1rem;
    color: #1f3d36;
    background: #fff;
}

.mentevent-field input:focus,
.mentevent-field select:focus {
    outline: 2px solid #42BB95;
    border-color: #42BB95;
}

/* Grid pre časové sloty aj formu stretnutia */
.mentevent-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

/* Pill buttons */
.mentevent-slot-grid .mentevent-slot-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid #225A4D !important;
    background: #225A4D !important;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
    margin: 0 !important;
    width: auto !important;
    min-width: 70px;
}

.mentevent-slot-grid .mentevent-slot-btn:hover {
    background: #42BB95 !important;
    border-color: #42BB95 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.mentevent-slot-grid .mentevent-slot-btn.is-selected {
    background: #42BB95 !important;
    border-color: #42BB95 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.mentevent-slot-grid .mentevent-slot-btn.is-disabled {
    background: #f2f2f2 !important;
    border-color: #dddddd !important;
    color: #8c8c8c !important;
    cursor: not-allowed;
    opacity: 0.7;
    text-decoration: line-through;
}

.mentevent-slot-grid.is-loading {
    position: relative;
}

.mentevent-slot-grid.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    z-index: 1;
    backdrop-filter: blur(2px);
}

.mentevent-slot-grid.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    border: 3px solid #42BB95;
    border-top-color: transparent;
    border-radius: 50%;
    animation: mentevent-spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 2;
}

@keyframes mentevent-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.mentevent-error-box {
    margin-bottom: 12px;
}

.mentevent-price-suffix {
    font-weight: 400;
    font-size: 0.82em;
}


/* Flatpickr doladenie */
.mentevent-booking-fields .flatpickr-calendar {
    font-size: 0.95rem;
}

.mentevent-booking-fields .flatpickr-day.selected,
.mentevent-booking-fields .flatpickr-day.startRange,
.mentevent-booking-fields .flatpickr-day.endRange {
    background: #225A4D !important;
    border-color: #225A4D !important;
    color: #ffffff !important;
}

.mentevent-booking-fields .flatpickr-day:hover {
    background: #42BB95 !important;
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .mentevent-booking-card {
        padding: 14px;
    }
    .mentevent-slot-grid .mentevent-slot-btn {
        width: calc(50% - 0.25rem) !important;
        justify-content: center;
    }
}
