body {
    background: #f5f7fa;
    min-height: 100vh;
}

.registration-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.registration-container h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.registration-container h2 i {
    color: #7c3aed;
    margin-right: 10px;
}

.form-floating > .form-control,
.form-floating > .form-select {
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    padding: 1rem 0.75rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.15);
    background-color: #ffffff;
    transform: translateY(-2px);
}

.form-floating > label {
    padding-left: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* Step Indicator Styles */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e0e6ed;
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 1;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e0e6ed;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.step-item.completed .step-circle::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.step-label {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
    max-width: 120px;
    line-height: 1.3;
}

.step-item.active .step-label {
    color: #7c3aed;
    font-weight: 700;
}

.step-item.completed .step-label {
    color: #27ae60;
}

.step-progress-line {
    position: absolute;
    top: 30px;
    left: 50px;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed 0%, #27ae60 100%);
    z-index: 0;
    transition: width 0.5s ease;
}

@media (max-width: 768px) {
    .step-indicator {
        padding: 0 5px;
    }

    .step-indicator::before {
        left: 35px;
        right: 35px;
    }

    .step-circle {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .step-label {
        font-size: 11px;
        max-width: 80px;
    }

    .step-progress-line {
        left: 35px;
    }
}

.input-group {
    height: calc(3.5rem + 2px) !important;
    flex-wrap: nowrap !important;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-group .form-control,
.input-group .form-select {
    border: 2px solid #e0e6ed;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.input-group .form-control:focus {
    border-color: #7c3aed;
    background-color: #ffffff;
    z-index: 3;
}

.input-group-addon {
    padding-top: 22px !important;
}

.input-group-text {
    text-align: left !important;
    background: #7c3aed;
    color: white;
    border: none;
    font-weight: 600;
}

.tel-regis {
    min-width: 130px;
    background: #7c3aed;
    color: white;
    border: none;
    font-weight: 600;
}

.form-label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title {
    font-weight: 700;
    color: #754691;
    border-bottom: 3px solid #754691;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 25px;
    display: inline-block;
    width: 100%;
}

.section-title span {
    color: #754691;
}

hr {
    border: none;
    height: 2px;
    background: #754691;
    margin: 30px 0;
    opacity: 0.3;
}

textarea.form-control {
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    resize: vertical;
}

textarea.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    background-color: #ffffff;
}

.form-check {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e0e6ed;
    transition: all 0.3s ease;
}

.form-check:hover {
    background: #e9ecef;
    border-color: #0d6efd;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.15em;
    border: 2px solid #0d6efd;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    margin-left: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

#registerForm a {
    color: #754691 !important;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

#registerForm a:hover {
    color: #754691 !important;
    border-bottom: 2px solid #754691;
}

.text-danger {
    color: #e74c3c !important;
    font-weight: bold;
}

small.form-text {
    color: #6c757d;
    font-style: italic;
    margin-top: 5px;
    display: block;
}

.is-invalid {
    border-color: #e74c3c !important;
    animation: shake 0.3s;
}

.is-valid {
    border-color: #27ae60 !important;
}

.r_invalid {
    border-color: #e74c3c !important;
    background-color: #fff5f5 !important;
}

.r_invalid:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

input[type="checkbox"]:not(.form-check-input) {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 10px;
    accent-color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .registration-container {
        padding: 25px;
        margin: 20px 15px;
        border-radius: 15px;
    }

    .registration-container h2 {
        font-size: 24px;
    }

    .btn-primary {
        font-size: 16px;
    }
}

/* Loading animation for form submission */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Registration Page Styles */

/* Cart Sidebar Sticky Positioning */
.cart-sidebar-container {
    position: relative;
}

.cart-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.sticky-cart {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transition: box-shadow 0.3s ease;
}

.sticky-cart.scrolling {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cart Title */
.cart-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Cart Items Container */
.cart-items-container {
    margin-bottom: 20px;
}

.cart-items-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.cart-item-options {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 600;
    color: #754691;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.cart-item-qty {
    font-size: 0.85rem;
    color: #6c757d;
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cart-item-remove:hover {
    transform: scale(1.2);
    color: #c82333;
}

/* Empty Cart Message */
.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
}

/* Cart Summary */
.cart-summary {
    padding-top: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.summary-row.total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 1.1rem;
}

.summary-value {
    font-weight: 500;
}

.cart-note {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Registration Container */
.registration-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}


/* Product Section */
.product-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Product Card (Radio Selection) */
.product-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.product-card:hover {
    border-color: #754691;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.product-card.selected {
    border-color: #754691;
    background-color: #f0f8ff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.product-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.product-card-label {
    cursor: pointer;
    display: block;
}

.check-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #754691;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card.selected .check-icon {
    opacity: 1;
}

/* Product Card Multi (Checkbox/Add to Cart) */
.product-card-multi {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-multi:hover {
    border-color: #754691;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

/* Product Image */
.product-image-wrapper {
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.product-desc {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 12px;
    flex: 1;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: #754691;
}

.product-points {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
}

/* Sliding Cart Sidebar Styles */
.cart-sidebar-container {
    position: fixed;
    right: 0;
    top: 0;
    width: 400px;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.cart-sidebar-container.cart-hidden {
    transform: translateX(100%);
}

/* Cart Toggle Button (visible when cart is hidden) */
.cart-toggle-btn {
    position: fixed;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    border: none;
    border-radius: 8px 0 0 8px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: right 0.3s ease-in-out;
}

.cart-toggle-btn.cart-hidden {
    right: 0;
}

.cart-toggle-btn:hover {
    right: 0;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
}

.cart-toggle-btn .cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid white;
    display: none;
}

/* Cart Header with Close Button */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cart-close-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.cart-close-btn:hover {
    background: #f8f9fa;
    color: #7c3aed;
}

/* Override cart sidebar for fixed positioning */
@media (min-width: 992px) {
    .cart-sidebar-container {
        position: fixed;
        right: 0;
        top: 0;
        width: 400px;
        height: 100vh;
        padding: 20px;
        background: white;
        overflow-y: auto;
    }

    .sticky-cart {
        position: relative;
        top: 0;
        max-height: none;
    }
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .cart-sidebar-container {
        width: 100%;
        max-width: 400px;
    }

    .cart-toggle-btn {
        display: flex;
    }

    .cart-sidebar-container.cart-hidden {
        transform: translateX(100%);
    }

    .sticky-cart {
        position: relative;
        top: 0;
        max-height: none;
        margin-top: 30px;
    }

    .cart-close-btn {
        display: flex;
    }
}

@media (max-width: 767.98px) {
    .cart-sidebar-container {
        width: 100%;
    }
}

/* Category Grouping Styles */
.category-group {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.category-group:last-child {
    border-bottom: none;
}

.category-header {
    font-size: 1.15rem;
    font-weight: 600;
    color: #754691;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #754691;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.category-header i {
    color: #754691;
    font-size: 1.1rem;
    margin-right: 10px;
}

@media (max-width: 767.98px) {
    .category-header {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .category-group {
        margin-bottom: 30px;
    }
}

.badge {
    background-color: #754691;
}

.cart-label {
    font-weight: 600;
    color: #754691;
}

.btn-secondary {
  background-color: gray !important;
  border-color: gray !important;
}

/* Modal Options Dropdown - Disabled Options Styling */
select.option-item option:disabled,
select.form-select option:disabled,
#sigOptions select option:disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    font-style: italic;
    cursor: not-allowed;
}

/* Additional styling for better visibility */
select.option-item option:disabled::before,
select.form-select option:disabled::before {
    content: "✗ ";
    color: #dc3545;
}

/* Ensure disabled options are clearly distinguishable */
select option[disabled] {
    background-color: #dddddd !important;
    color: #999999 !important;
}

/* Modal dropdown styling */
#sigViewOptionsModal select.form-select option:disabled {
    background-color: #f0f0f0;
    color: #888888;
    opacity: 0.6;
}

/* Info Display Only - No Interaction Styles */
.info-display-only {
    padding: 15px 20px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    pointer-events: none; /* Prevent any click events */
    cursor: default;
    user-select: none;
}

.info-display-only i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Ensure no hover effects */
.info-display-only:hover {
    background-color: #fff3cd;
    border-color: #ffc107;
    transform: none;
}

