:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --background-start: #f3f4f6;
    --background-end: #e5e7eb;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    line-height: 1.6;
    position: relative;
}

/* Background Shapes for Premium Feel */
.background-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.shape-1 {
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: rgba(37, 99, 235, 0.2);
}

.shape-2 {
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(16, 185, 129, 0.2);
}

.congress-banner {
    width: 100%;
    display: block;
    height: auto;
    max-height: 20vh;
    /* Crop on login/registration for efficiency */
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    /* Moved from body */
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

header .subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.6s ease backwards;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    /* transform: translateY(-2px); Too much movement */
}

/* Stagger animations for cards */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card-header {
    padding: 20px 30px;
    background: #fdfdfd;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header i {
    font-size: 1.2rem;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.card-body {
    padding: 30px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #374151;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main);
    background-color: #f9fafb;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Radio Groups (Prefix, Factura) */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Registration Options */
.registration-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reg-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reg-option:hover {
    border-color: var(--accent-color);
    background-color: #eff6ff;
}

.reg-option input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

.reg-option input[type="radio"]:checked+.option-content .option-title {
    color: var(--primary-color);
    font-weight: 700;
}

.reg-option:has(input:checked) {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.option-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.option-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.option-price {
    font-weight: 700;
    color: var(--text-main);
    background: #e5e7eb;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Workshops Grid */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.workshop-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.workshop-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.workshop-item:has(input:checked) {
    background: #ecfdf5;
    border-color: var(--success-color);
}

.workshop-item input {
    margin-right: 12px;
    accent-color: var(--success-color);
    transform: scale(1.1);
}

.ws-name {
    flex-grow: 1;
    font-size: 0.95rem;
}

.ws-price {
    font-size: 0.85rem;
    color: var(--success-color);
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Billing Form Animation */
.billing-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed var(--border-color);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.billing-form.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
}

/* Policy Box */
.policy-box {
    background: #fff1f2;
    border-left: 4px solid #f43f5e;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #881337;
}

/* Total & Payment */
.total-card {
    background: #111827;
    /* Dark theme for checkout feel */
    color: white;
    overflow: hidden;
    /* Ensure radius clips children */
}

.total-card h2 {
    color: white;
}

.total-card .card-header {
    background: #111827;
    /* Match card body */
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.total-card .card-header i {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.total-card .card-body {
    background: #111827;
}

.total-display {
    display: flex;
    justify-content: flex-start;
    /* Align start to put them side by side */
    align-items: center;
    gap: 20px;
    /* Space between label and price */
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.total-display span:first-child {
    font-size: 1.2rem;
    color: #9ca3af;
}

.total-display .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-option {
    flex: 1;
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.method-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.method-name i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.payment-option input:checked+.method-name {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.payment-option:hover .method-name {
    background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        flex-direction: column;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .card-header {
        padding: 15px 20px;
    }

    .card-body {
        padding: 20px;
    }

    .total-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .addon-content {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
    }

    .addon-title {
        max-width: 200px;
        font-size: 0.8rem;
    }

    .addon-info-row {
        grid-column: 2 / 4;
        margin-top: 4px;
        flex-wrap: wrap;
    }
}

/* Animations Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Text */
.info-text {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Benefit Box */
/* Benefit Box - Blue Theme Default */
.benefit-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.benefit-box h4 {
    color: #1e40af;
    margin-bottom: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefit-box ul {
    list-style-type: none;
    padding-left: 5px;
}

.benefit-box li {
    font-size: 0.9rem;
    color: #1d4ed8;
    margin-bottom: 4px;
    position: relative;
    padding-left: 15px;
}

.benefit-box li::before {
    content: "•";
    color: #1e40af;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Contribution Rows Dynamic */
.contribution-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 2fr auto;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
    animation: fadeInDown 0.3s ease;
}

/* Cleanup old flex classes for this specific row */
.contribution-row .small,
.contribution-row .large {
    flex: none;
    width: 100%;
}

@media (max-width: 768px) {
    .contribution-row {
        grid-template-columns: 1fr 1fr;
    }

    .contribution-row .large {
        grid-column: span 2;
    }
}

.readonly-input {
    background-color: #f3f4f6;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-light);
    cursor: not-allowed;
    min-height: 46px;
    display: flex;
    align-items: center;
}

.add-btn {
    background: transparent;
    border: 2px dashed var(--primary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.add-btn:hover {
    background: rgba(37, 99, 235, 0.05);
}

.remove-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    /* Align with inputs */
    transition: all 0.2s;
}


/* Student Details Section */
.student-details {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-top: none;
    margin-top: -5px;
    /* Pull it up to connect with the wrapper logic if needed, but here we just sit below */
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    animation: fadeInDown 0.3s ease;
    margin-left: 10px;
    margin-right: 10px;
}

.student-details.hidden {
    display: none;
}

.student-option-row {
    margin-bottom: 15px;
}

.student-option-row:last-child {
    margin-bottom: 0;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.toggle-switch input {
    display: none;
}

.toggle-switch .slider {
    position: relative;
    width: 40px;
    height: 22px;
    background-color: #ccc;
    border-radius: 22px;
    transition: .4s;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.toggle-switch input:checked+.slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked+.slider:before {
    transform: translateX(18px);
}

.toggle-switch .label-text {
    font-size: 0.95rem;
    font-weight: 500;
}

/* File Upload */
.file-upload-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

input[type="file"] {
    background: white;
    padding: 8px;
    border: 1px dashed var(--primary-color);
    border-radius: 8px;
    width: 100%;
    font-size: 0.9rem;
}

/* --- Elegant Add-on Sections Design --- */

.addon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Only 2 columns as requested */
    gap: 1rem;
    /* Slightly more gap for larger cards */
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .addon-grid {
        grid-template-columns: 1fr;
    }
}

.addon-option {
    display: block;
    cursor: pointer;
    perspective: 1000px;
}

.addon-option input[type="checkbox"] {
    display: none;
}

.addon-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    /* Slightly more padding */
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* More gap */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    min-height: 100px;
    /* Taller */
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.addon-option:hover .addon-content {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}

.addon-option input:checked+.addon-content {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.addon-header-premium {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

/* Slick Custom Checkbox */
.custom-check-premium {
    width: 0.9rem;
    height: 0.9rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    margin-top: 0.15rem;
    flex-shrink: 0;
    position: relative;
    background: white;
    transition: all 0.2s ease;
}

.addon-option input:checked+.addon-content .custom-check-premium {
    border-color: var(--primary-color);
    background: var(--primary-color);
    transform: scale(1.1);
}

.addon-option input:checked+.addon-content .custom-check-premium::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 0.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.addon-title-premium {
    font-size: 0.85rem;
    /* Bigger font */
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    letter-spacing: -0.01em;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.addon-meta-compact {
    display: flex;
    gap: 0.7rem;
    font-size: 0.75rem;
    /* Bigger font */
    font-weight: 600;
    color: var(--text-light);
    margin-top: 0.1rem;
}

.addon-meta-compact span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.addon-meta-compact i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.addon-footer-premium {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 0.5rem;
    gap: 0.6rem;
}

.info-text-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 0.7rem;
    /* Bigger font */
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
}

.info-text-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.addon-price-tag {
    font-size: 0.85rem;
    /* Bigger font */
    font-weight: 800;
    color: var(--primary-color);
    background: white;
    padding: 0.15rem 0.6rem;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.addon-option input:checked+.addon-content .addon-price-tag {
    background: var(--primary-color);
    color: white;
}

/* Premium Modal Entrance Animation */
@keyframes modalReveal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.modal-content {
    animation: modalReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.addon-content.is-expanded .expandable-details {
    display: block;
}

.toggle-details-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-align: left;
    text-decoration: underline;
}

.toggle-details-btn:hover {
    color: var(--primary-dark);
}

.description-text {
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 5px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ef4444;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 20px;
}

.workshop-meta-compact {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-item span:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    font-weight: 700;
}

.meta-item span:last-child {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.modal-footer {
    padding: 15px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    background: #f9fafb;
}

.btn-secondary {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f3f4f6;
}


/* --- Blue Theme Unification (Payment) --- */

.payment-box {
    background: #eff6ff;
    /* Very Light Blue */
    border: 2px dashed #bfdbfe;
    /* Light Blue Border */
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.payment-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.section-title-blue {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e40af;
    /* Dark Blue */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-blue i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.info-text-blue {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    border: 1px solid #dbeafe;
}


/* --- Force Payment Section to Blue/White Theme (Overrides) --- */
.total-card {
    background: #ffffff !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--text-main) !important;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15) !important;
}

.total-card h2 {
    color: var(--primary-color) !important;
}

.total-card .card-header {
    background: #eff6ff !important;
    color: var(--primary-color) !important;
    border-bottom: 1px solid #bfdbfe !important;
}

.total-card .card-header i {
    background: white !important;
    color: var(--primary-color) !important;
}

.total-card .card-body {
    background: #ffffff !important;
}

.total-display {
    border-bottom: 1px solid var(--border-color) !important;
}

.total-display span:first-child {
    color: var(--text-main) !important;
}

.total-display .amount {
    color: var(--success-color) !important;
    /* Keep green or switch to blue if preferred, keeping green for money is standard */
}


/* --- Registration Summary --- */
.summary-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    animation: fadeInDown 0.3s ease;
}

.summary-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 10px;
    border-bottom: 1px dashed #bfdbfe;
    padding-bottom: 5px;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #1f2937;
    margin-bottom: 5px;
}

.summary-item.sub-item {
    padding-left: 15px;
    color: #4b5563;
    font-size: 0.85rem;
}


/* --- Summary Prices --- */
.summary-price {
    font-weight: 600;
    color: #1e40af;
}

.summary-total-row {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid #bfdbfe;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a8a;
}

/* --- Scrollable Grid Container (3 Rows Max) --- */
.scrollable-grid-container {
    max-height: 480px !important;
    overflow-y: auto !important;
    padding-right: 15px !important;
    margin-top: 15px !important;
    border-radius: 8px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f8fafc !important;
}

.scrollable-grid-container::-webkit-scrollbar {
    width: 10px !important;
    display: block !important;
}

.scrollable-grid-container::-webkit-scrollbar-track {
    background: #f8fafc !important;
    border-radius: 10px !important;
}

.scrollable-grid-container::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 10px !important;
    border: 2px solid #f8fafc !important;
}

.scrollable-grid-container::-webkit-scrollbar-thumb:hover {
    background: #2563eb !important;
}

/* Full/Disabled states for addons */
.addon-option.disabled {
    cursor: not-allowed !important;
    opacity: 0.7;
}

.addon-option.disabled .addon-content {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.addon-option.disabled .addon-title-premium {
    color: #64748b !important;
}

.addon-price-tag.full-tag {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.option-full .custom-check-premium {
    border-color: #cbd5e1 !important;
    background: #f1f5f9 !important;
}

.option-full .addon-meta-compact span {
    color: #94a3b8 !important;
}

/* --- Error Animations --- */
@keyframes shake-error {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
}

.shake-active {
    animation: shake-error 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4) !important;
}

.shake-active .addon-content {
    background: #fff1f2 !important;
    border-color: #ef4444 !important;
}

.shake-active .addon-title-premium {
    color: #b91c1c !important;
}

.temp-warning-label {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 100;
    animation: bounce-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

@keyframes bounce-in {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
/* --- Purchased / Locked Items Styles --- */
.option-purchased .addon-content {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    cursor: default;
    opacity: 0.8;
}
.locked-purchased { cursor: not-allowed !important; }
.check-locked {
    background: #94a3b8 !important;
    border-color: #94a3b8 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.check-locked i { color: white; font-size: 0.6rem; }
.purchased-tag {
    background: #e2e8f0 !important;
    color: #64748b !important;
    font-size: 0.75rem !important;
    padding: 0.2rem 0.6rem !important;
    border: 1px solid #cbd5e1;
}
.option-purchased:hover .addon-content { transform: none !important; box-shadow: none !important; }
.option-purchased .addon-title-premium { color: #64748b; }
.option-purchased .addon-meta-compact { opacity: 0.6; }
