/* Container General Formular Achizitie */
.ebs-booking-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    max-width: 650px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
    color: #1e293b;
}

/* Antet Card */
.ebs-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.ebs-booking-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1b263e;
}

.ebs-badge-stock {
    background-color: #f0fdf4;
    color: #166534;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

.ebs-badge-stock.unlimited {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* Sectiune Preturi */
.ebs-pricing-info {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 4px solid #1b263e;
}

.ebs-promo-active {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.ebs-promo-label,
.ebs-price-label {
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    margin-right: 8px;
}

.ebs-price-value {
    font-size: 24px;
    font-weight: 800;
    color: #1b263e;
}

.ebs-price-value.promo-price {
    color: #d97706;
    /* Culoare calda pentru promo */
}

.ebs-price-old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 16px;
    margin-left: 10px;
}

.ebs-promo-conditions {
    width: 100%;
    margin-top: 6px;
    color: #475569;
    font-size: 12px;
}

.ebs-sold-out-card {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
}

/* Selector Cantitate */
.ebs-form-group.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ebs-form-group.quantity-selector label {
    font-weight: 700;
    font-size: 15px;
    color: #334155;
}

.ebs-qty-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.ebs-qty-btn {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ebs-qty-btn:hover {
    background: #e2e8f0;
}

.ebs-qty-field {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    -moz-appearance: textfield;
}

.ebs-qty-field::-webkit-outer-spin-button,
.ebs-qty-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Card Participant Dinamic */
.ebs-participant-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border-top: 3px solid #cbd5e1;
    transition: transform 0.2s ease, border-top-color 0.2s ease;
}

.ebs-participant-card:hover {
    border-top-color: #1b263e;
    transform: translateY(-2px);
}

.ebs-participant-card h4 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 15px;
    color: #1b263e;
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.ebs-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.ebs-input-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ebs-input-field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #475569;
}

.ebs-input-field input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    background-color: #fdfdfd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ebs-input-field input:focus {
    outline: none;
    border-color: #1b263e;
    box-shadow: 0 0 0 3px rgba(27, 38, 62, 0.15);
    background-color: #fff;
}

.field-desc {
    color: #64748b;
    font-size: 11px;
    margin-top: 4px;
    line-height: 1.4;
}

/* Previzualizare Pret */
.ebs-price-preview {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px dashed #cbd5e1;
}

.ebs-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
}

#ebs-preview-total {
    font-size: 18px;
    color: #1b263e;
}

.ebs-preview-breakdown {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* Buton Submit */
.ebs-submit-btn {
    width: 100%;
    background-color: #1b263e;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ebs-submit-btn:hover {
    background-color: #2e3b56;
}

.ebs-submit-btn:active {
    transform: scale(0.98);
}

.ebs-submit-btn.loading .btn-text {
    visibility: hidden;
}

.ebs-submit-btn.loading .btn-loader {
    display: block;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: ebs-spin 0.8s ease-in-out infinite;
}

.btn-loader {
    display: none;
}

@keyframes ebs-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ajustari Mobile */
@media (max-width: 580px) {
    .ebs-form-row {
        flex-direction: column;
        gap: 12px;
    }
}

/* ── Separatori secțiuni ─────────────────────────────────────── */
.ebs-section-divider {
    border: none;
    border-top: 1px dashed #e2e8f0;
    margin: 18px 0 14px;
}

/* ── Grup Radio (Vii însoțit / Tip însoțitor) ───────────────── */
.ebs-radio-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.ebs-radio-group.ebs-indent {
    padding-left: 16px;
    border-left: 3px solid #cbd5e1;
    margin-top: 6px;
}

.ebs-radio-label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-right: 4px;
}

.ebs-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    transition: border-color 0.2s, background 0.2s;
}

.ebs-radio-option:hover {
    border-color: #1b263e;
    background: #f8fafc;
}

.ebs-radio-option input[type="radio"] {
    accent-color: #1b263e;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ── Zonă însoțitor (slide) ──────────────────────────────────── */
.ebs-companion-type-wrap {
    margin-top: 10px;
}

.ebs-companion-fields {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px 10px;
    margin-top: 12px;
}

.ebs-companion-header {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ebs-companion-note {
    font-size: 12px;
    border-radius: 6px;
    padding: 7px 10px;
    margin-top: 8px;
}

.medical-note {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.non-medical-note {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

/* ── Prânz ───────────────────────────────────────────────────── */
.ebs-lunch-group {
    margin-top: 4px;
    margin-bottom: 4px;
}

.ebs-checkbox-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.ebs-checkbox-option:hover {
    border-color: #1b263e;
    background: #f8fafc;
}

.ebs-checkbox-option input[type="checkbox"] {
    accent-color: #1b263e;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.ebs-checkbox-option em {
    font-style: normal;
    color: #64748b;
    font-size: 12px;
}

/* ── Breakdown linii preț ────────────────────────────────────── */
.ebs-breakdown-line {
    padding: 3px 0;
    font-size: 12px;
    color: #64748b;
    border-bottom: 1px dotted #e2e8f0;
    line-height: 1.5;
}

.ebs-breakdown-line:last-child {
    border-bottom: none;
}