.kulig-slot {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
}

.kulig-toggle {
    background: #d40000;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.kulig-form-wrapper {
    margin-top: 15px;
}

.kulig-form-wrapper {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.kulig-toggle.disabled {
    background: #999;
    cursor: not-allowed;
}
.kulig-form button {
    position: relative;
    padding: 10px 20px;
}

.kulig-form button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.kulig-form button.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}
.kulig-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.kulig-modal.show {
    display: flex;
}

.kulig-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    min-width: 300px;
}

.kulig-modal-content button {
    margin-top: 15px;
    background: #d40000;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
}

.kulig-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 12px;
    margin-top: 15px;
    align-items: center;
}

/* FIELD WRAPPER */
.kulig-field {
    position: relative;
    display: flex;
    align-items: center;
}

.kulig-field input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.kulig-field input:focus {
    border-color: #d40000;
    box-shadow: 0 0 0 2px rgba(212,0,0,0.15);
    outline: none;
}

/* ICON */
.kulig-icon {
    position: absolute;
    left: 12px;
    font-size: 14px;
    opacity: 0.6;
}

/* SMALL FIELD (ilosc osob) */
.kulig-field.small input {
    padding-left: 40px;
    text-align: center;
}

/* SUBMIT BUTTON */
.kulig-submit {
    background: #d40000;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.kulig-submit:hover {
    background: #b80000;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .kulig-form {
        grid-template-columns: 1fr;
    }

    .kulig-submit {
        width: 100%;
    }
}
.kulig-toggle.full {
    background: #999;
}

.kulig-toggle.closed {
    background: #333;
}
.kulig-hidden {
    display: none;
}

.kulig-active-banner {
    background: #d40000;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

.kulig-availability {
    margin-top: 8px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Zielony – dużo miejsc */
.availability-ok {
    background-color: #e6f7ec;
    color: #1f7a3e;
    border: 1px solid #b7e4c7;
}

/* Pomarańczowy – mało miejsc */
.availability-warning {
    background-color: #fff4e5;
    color: #b05c00;
    border: 1px solid #ffd8a8;
}

/* Czerwony – ostatnie miejsca */
.availability-critical {
    background-color: #fdeaea;
    color: #a30000;
    border: 1px solid #f5b5b5;
}
