/* ===== Modal Content ===== */
.modal-content {
    padding: 24px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.modal-body {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 4px;
}

.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.modal-body-tickets {
    padding: 0.5em;
}

/* ===== Discount Code ===== */
#applyDiscountButton {
    border: 1.5px solid #d1d5db;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    color: #4b5563;
    transition: all 0.2s ease;
}

#applyDiscountButton:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.input-group .form-control {
    flex: 1 1 auto;
    height: auto;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 8px 0 0 8px;
    border: 1.5px solid #d1d5db;
    transition: border-color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.input-group .form-control:focus {
    border-color: #197BFF;
    box-shadow: 0 0 0 3px rgba(25, 123, 255, 0.1);
}

.input-group-append .btn {
    padding: 12px 20px;
    line-height: normal;
    white-space: nowrap;
}

/* ===== Discount Feedback ===== */
#discountFeedback {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* !important: el <small> lleva .text-muted de Bootstrap, que también es !important */
#discountFeedback.success {
    color: #059669 !important;
}

#discountFeedback.error {
    color: #dc2626 !important;
}

/* ===== Competition Items ===== */
.competition-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.competition-item:hover {
    border-color: #197BFF;
    background-color: #f8faff;
    box-shadow: 0 2px 12px rgba(25, 123, 255, 0.1);
}

.competition-item.selected {
    background: linear-gradient(135deg, #eef4ff 0%, #e0edff 100%);
    border-color: #197BFF;
    box-shadow: 0 0 0 1px #197BFF;
}

/* ===== Radio Buttons ===== */
.form-check-input {
    display: none;
}

.form-check-label {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
}

/* ===== Competition Info ===== */
.competition-info h5 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 700;
    color: #1a1a2e;
}

.competition-info p {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #6b7280;
}

.competition-info strong {
    font-weight: 600;
    color: #1a1a2e;
}

/* ===== Toggle Link ===== */
.toggle-link {
    color: #197BFF;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.toggle-link:hover {
    color: #0057d9;
}

/* ===== Additional Info ===== */
.additional-info {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #6b7280;
}

.competition-item.selected .additional-info {
    display: block;
}

/* ===== Modal Bottom (Total + Footer) ===== */
.modal-bottom {
    border-top: 1px solid #e5e7eb;
    padding: 16px 20px;
    background-color: #fff;
}

/* ===== Total Price ===== */
.total-price {
    position: static;
    background-color: transparent;
    padding: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
    border-top: none;
    font-family: 'Inter', sans-serif;
}

/* ===== Modal Footer Buttons ===== */
.modal-footer {
    border-top: none;
    padding: 0;
}

.modal-footer .btn-primary {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #197BFF 0%, #0057d9 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(25, 123, 255, 0.25);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(25, 123, 255, 0.35);
}

.modal-footer .btn-secondary {
    font-family: 'Inter', sans-serif;
    background-color: transparent;
    color: #6b7280;
    border: 1.5px solid #d1d5db;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.modal-footer .btn-secondary:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

/* ===== Disabled Competition ===== */
.disabled-competition {
    background-color: #f9fafb;
    color: #9ca3af;
    border: 1.5px solid #e5e7eb;
    opacity: 0.6;
    pointer-events: none;
}


/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .modal-dialog.modal-lg {
        max-width: 100%;
        margin: 0;
        min-height: 100vh;
    }

    .modal-dialog.modal-lg .modal-content {
        border-radius: 0;
        min-height: 100vh;
    }

    .modal-dialog:not(.modal-lg) {
        max-width: 92%;
        margin: 16px auto;
    }

    .modal-content {
        font-size: 0.95rem;
        padding: 16px;
        border-radius: 12px;
    }

    .modal-body {
        max-height: calc(100vh - 200px);
    }

    .competition-item {
        margin-left: 0;
        margin-right: 0;
        border-radius: 10px;
    }

    .competition-item h5 {
        font-size: 1rem;
    }

    .competition-item p {
        font-size: 0.85rem;
    }

    .modal-bottom {
        padding: 12px 16px;
    }

    .total-price h5 {
        font-size: 1rem;
    }

    .modal-footer {
        gap: 0;
        flex-direction: column;
    }

    .form-check-label {
        padding: 12px;
    }

    .modal-footer .btn-primary,
    .modal-footer .btn-secondary {
        width: 100%;
        margin: 4px 0;
    }

    .input-group .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .input-group-append .btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}
