/* ========================================
   Registration Page - Styles
   Purple theme matching reference site
   ======================================== */

:root {
    --reg-primary: #6B21A8;
    --reg-primary-light: #7C3AED;
    --reg-primary-dark: #5B21B6;
    --reg-accent: #A855F7;
    --reg-bg: #f8f9fa;
    --reg-border: #e5e7eb;
    --reg-text: #1f2937;
    --reg-text-light: #6b7280;
}

/* Registration info section */
.reg-info-card {
    background: #fff;
    border: 1px solid var(--reg-border);
    border-radius: 12px;
    padding: 36px;
    margin-bottom: 40px;
}

.reg-info-card h2 {
    color: var(--reg-primary);
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.reg-info-card h3 {
    color: var(--reg-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.reg-info-card h5 {
    color: var(--reg-primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 16px;
    margin-bottom: 8px;
}

.reg-info-card p,
.reg-info-card li {
    color: var(--reg-text);
    font-size: 0.92rem;
    line-height: 1.7;
}

.reg-info-card ul {
    padding-left: 20px;
}

.payment-methods-box {
    border: 1px solid var(--reg-border);
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.payment-methods-box h5 {
    margin-top: 0;
}

.payment-logos {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.payment-logos img {
    height: 32px;
    object-fit: contain;
}

/* Section divider */
.reg-section-title {
    color: var(--reg-primary);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--reg-primary);
    display: inline-block;
}

/* Price Tiers Card */
.price-tiers-card {
    background: #fff;
    border: 2px solid var(--reg-primary);
    border-radius: 14px;
    padding: 30px 36px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(107, 33, 168, 0.08);
}

.price-tiers-title {
    color: var(--reg-primary);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.price-tiers-subtitle {
    color: var(--reg-text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.price-tiers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.price-tiers-action {
    display: flex;
    align-items: center;
    margin-left: auto;
    align-self: center;
}

.price-tier-item {
    background: #f8f9fa;
    border: 2px solid var(--reg-border);
    border-radius: 12px;
    padding: 24px 28px;
    min-width: 200px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.price-tier-item.active {
    border-color: var(--reg-primary);
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    box-shadow: 0 6px 24px rgba(107, 33, 168, 0.15);
    transform: translateY(-2px);
}

.price-tier-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--reg-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.price-tier-item.active .price-tier-label {
    color: var(--reg-primary);
}

.price-tier-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--reg-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.price-tier-date {
    font-size: 0.85rem;
    color: var(--reg-text-light);
    font-weight: 500;
}

.price-tier-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--reg-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-price-tiers {
    background: var(--reg-primary);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(107, 33, 168, 0.3);
}

.btn-price-tiers:hover {
    background: var(--reg-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 33, 168, 0.4);
}

.btn-price-tiers:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .price-tiers-list {
        flex-direction: column;
        align-items: center;
    }

    .price-tier-item {
        width: 100%;
        max-width: 320px;
    }

    .price-tiers-action {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
        justify-content: center;
    }

    .btn-price-tiers {
        width: 100%;
        max-width: 320px;
    }
}

/* Gala Dinner Card */
.gala-dinner-card {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 2px solid var(--reg-primary);
    border-radius: 14px;
    padding: 30px 36px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(107, 33, 168, 0.08);
}

.gala-dinner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.gala-dinner-info {
    flex: 1;
}

.gala-dinner-title {
    color: var(--reg-primary);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.gala-dinner-desc {
    color: var(--reg-text);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.gala-dinner-price-label {
    color: var(--reg-text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.gala-dinner-price {
    color: var(--reg-primary);
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 4px;
}

.gala-dinner-action {
    flex-shrink: 0;
}

.btn-gala-dinner {
    background: var(--reg-primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-gala-dinner:hover {
    background: var(--reg-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(107, 33, 168, 0.3);
}

@media (max-width: 768px) {
    .gala-dinner-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .gala-dinner-card {
        padding: 24px 20px;
    }
}

/* Ticket cards */
.ticket-category {
    margin-bottom: 40px;
}

.ticket-category-title {
    color: var(--reg-primary);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ticket-card {
    background: #fff;
    border: 2px solid var(--reg-primary);
    border-radius: 14px;
    padding: 28px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s ease;
}

.ticket-card:hover {
    box-shadow: 0 8px 30px rgba(107, 33, 168, 0.15);
}

.ticket-card-info {
    flex: 1;
    min-width: 0;
}

.ticket-card-name {
    color: var(--reg-primary);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.ticket-card-badge {
    display: inline-block;
    background: var(--reg-primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
}

.ticket-card-meta {
    font-size: 0.85rem;
    color: var(--reg-text-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

.ticket-card-meta .icon {
    display: inline-block;
    margin-right: 4px;
}

.ticket-card-date {
    font-weight: 600;
    color: var(--reg-text);
    font-size: 0.88rem;
}

.ticket-card-includes {
    list-style: disc;
    padding-left: 20px;
    font-size: 0.88rem;
    color: var(--reg-text);
    margin-top: 8px;
}

.ticket-card-includes li {
    margin-bottom: 4px;
}

.ticket-card-note {
    font-size: 0.82rem;
    color: var(--reg-text-light);
    font-style: italic;
    margin-top: 8px;
}

/* Price and actions */
.ticket-card-right {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.ticket-card-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--reg-primary);
    white-space: nowrap;
}

/* Package badge (stars) */
.package-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff3e0;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 2px solid #f59e0b;
    margin-bottom: 8px;
}

.package-stars {
    font-size: 1rem;
    color: #f59e0b;
    line-height: 1;
}

.package-value-label {
    font-size: 0.6rem;
    color: var(--reg-text-light);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.package-value-amount {
    font-size: 1rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1.1;
}

/* Buttons */
.btn-add-cart {
    background: var(--reg-primary);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-add-cart:hover {
    background: var(--reg-primary-dark);
    transform: translateY(-1px);
}

.btn-add-cart:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.btn-select-workshops {
    background: #fff;
    color: var(--reg-primary);
    border: 2px solid var(--reg-primary);
    padding: 8px 22px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-select-workshops:hover {
    background: var(--reg-primary);
    color: #fff;
}

/* Workshop note */
.workshop-note {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #92400e;
    margin: 20px 0;
}

/* Floating cart button */
.cart-float {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: var(--reg-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(107, 33, 168, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cart-float:hover {
    background: var(--reg-primary-dark);
    transform: translateY(-2px);
}

.cart-float .cart-count {
    background: #fff;
    color: var(--reg-primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

/* Order ID section */
.order-id-section {
    background: #fff;
    border: 1px solid var(--reg-border);
    border-radius: 12px;
    padding: 28px;
    margin: 40px 0;
}

.order-id-section h3 {
    color: var(--reg-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.order-id-section p {
    color: var(--reg-text-light);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.order-id-section input {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    border: 2px solid var(--reg-border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.order-id-section input:focus {
    outline: none;
    border-color: var(--reg-primary);
}

/* Cart sidebar / modal */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
}

.cart-overlay.active {
    display: flex;
}

.cart-panel {
    background: #fff;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--reg-text-light);
}

.cart-panel h2 {
    color: var(--reg-primary);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.cart-items {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--reg-border);
    gap: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--reg-text);
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--reg-primary);
    font-weight: 700;
    font-size: 0.88rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--reg-text-light);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    color: #ef4444;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 2px solid var(--reg-primary);
    margin-top: 10px;
}

.cart-total-label {
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-total-amount {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--reg-primary);
}

.cart-empty {
    text-align: center;
    color: var(--reg-text-light);
    padding: 40px 0;
    font-size: 0.95rem;
}

.btn-checkout {
    display: block;
    width: 100%;
    background: var(--reg-primary);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: var(--reg-primary-dark);
}

/* Workshop selection modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2500;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-panel {
    background: #fff;
    border-radius: 14px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--reg-text-light);
}

.modal-panel h3 {
    color: var(--reg-primary);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.modal-panel .modal-desc {
    color: var(--reg-text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.workshop-select-list {
    list-style: none;
    padding: 0;
}

.workshop-select-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--reg-border);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.workshop-select-item:hover {
    border-color: var(--reg-primary);
    background: #faf5ff;
}

.workshop-select-item.selected {
    border-color: var(--reg-primary);
    background: #f3e8ff;
}

.workshop-select-item input[type="checkbox"] {
    margin-top: 5px;
    accent-color: var(--reg-primary);
}

.workshop-select-info {
    flex: 1;
}

.workshop-select-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--reg-text);
}

.workshop-select-meta {
    font-size: 0.8rem;
    color: var(--reg-text-light);
}

.btn-modal-confirm {
    display: block;
    width: 100%;
    background: var(--reg-primary);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 20px;
}

.btn-modal-confirm:hover {
    background: var(--reg-primary-dark);
}

/* Checkout modal */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout-form input,
.checkout-form textarea {
    padding: 10px 14px;
    border: 2px solid var(--reg-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--reg-primary);
}

.checkout-summary {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 10px;
    padding: 16px;
    margin: 16px 0;
}

.checkout-summary h4 {
    color: var(--reg-primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}

.checkout-total-display {
    text-align: right;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--reg-primary);
}

.paypal-btn-container {
    margin-top: 16px;
    min-height: 50px;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--reg-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-float {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: 16px;
        justify-content: center;
    }

    .ticket-card {
        flex-direction: column;
        padding: 20px;
    }

    .ticket-card-right {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .package-badge {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        margin-right: 12px;
    }

    .reg-info-card {
        padding: 24px 20px;
    }

    .reg-info-card h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .ticket-card-name {
        font-size: 1rem;
    }

    .ticket-card-price {
        font-size: 1.3rem;
    }

    .btn-add-cart,
    .btn-select-workshops {
        padding: 8px 18px;
        font-size: 0.82rem;
    }
}