/**
 * LaunchYourKid Registration Flow Styles
 * Modern, accessible, and performant CSS for the shopping experience
 *
 * Brand Colors:
 * - Primary Pink: #ee5ba0
 * - Primary Green: #7cc142
 * - Primary Teal: #2a7276
 */

/* ============================================================================
   1. PROGRAMS SECTION
   ========================================================================= */

.programs-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    margin-top: 3rem;
}

.programs-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.programs-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.programs-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2a7276;
    margin-bottom: 0.5rem;
}

.programs-header p {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

/* ============================================================================
   2. PROGRAM CARDS GRID
   ========================================================================= */

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ============================================================================
   3. PROGRAM CARD STYLES
   ========================================================================= */

.program-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #7cc142;
}

.program-card:focus-within {
    outline: 3px solid #2a7276;
    outline-offset: 2px;
}

/* Selected Card State */
.program-card.selected {
    border-color: #ee5ba0;
    border-width: 3px;
    box-shadow: 0 8px 24px rgba(238, 91, 160, 0.25);
    background: linear-gradient(180deg, #fff 0%, #fff5f9 100%);
}

.program-card.selected:hover {
    border-color: #d84a8a;
    box-shadow: 0 10px 30px rgba(238, 91, 160, 0.35);
}

/* Checkmark Badge for Selected Cards */
.program-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ee5ba0;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(238, 91, 160, 0.4);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Unavailable Card State */
.program-card.unavailable {
    opacity: 0.7;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.program-card.unavailable:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #dee2e6;
}

/* Selection Hint */
.select-hint {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    display: block;
    margin-top: 0.5rem;
}

.program-card.selected .select-hint {
    color: #ee5ba0;
}

/* Selection Hint Text in Header */
.selection-hint-text {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6c757d;
    margin-left: 0.5rem;
}

/* Card Image */
.program-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f8f9fa;
    transition: opacity 0.3s ease;
}

.program-card-image[data-loading="true"] {
    opacity: 0.5;
}

.program-card-image:hover {
    opacity: 0.95;
}

/* Card Body */
.program-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Card Content (alternative name) */
.program-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Card Name */
.program-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2a7276;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.8rem;
}

/* Card Description */
.program-card-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Price Information */
.program-card-price {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.price-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a7276;
}

.price-period {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
}

.price-registration {
    font-size: 0.85rem;
    color: #7cc142;
    margin-top: 0.25rem;
}

.program-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.program-card-price-row:last-child {
    margin-bottom: 0;
}

.program-card-price-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.program-card-price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2a7276;
}

.program-card-price-recurring {
    color: #ee5ba0;
}

.program-card-price-registration {
    color: #7cc142;
}

.program-card-price-note {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Age Range Badge */
.program-card-age {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #7cc142 0%, #5da932 100%);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.program-card-age::before {
    content: "👶";
    margin-right: 0.4rem;
    font-size: 1rem;
}

/* Availability Indicator */
.program-card-availability {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.program-card-availability::before {
    content: "●";
    margin-right: 0.6rem;
    font-size: 1.2rem;
}

/* Availability States */
.program-card-availability.spots-unlimited {
    background: #e3f2fd;
    color: #0d47a1;
}

.program-card-availability.spots-unlimited::before {
    color: #2196f3;
}

.program-card-availability.spots-many {
    background: #d4edda;
    color: #155724;
}

.program-card-availability.spots-many::before {
    color: #4caf50;
}

.program-card-availability.spots-few {
    background: #fff3cd;
    color: #856404;
}

.program-card-availability.spots-few::before {
    color: #ff9800;
}

.program-card-availability.spots-low {
    background: #f8d7da;
    color: #721c24;
}

.program-card-availability.spots-low::before {
    color: #dc3545;
}

.program-card-availability.spots-none {
    background: #e9ecef;
    color: #495057;
}

.program-card-availability.spots-none::before {
    color: #6c757d;
}

/* Card Actions */
.program-card-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.btn-add-to-cart {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.btn-add-to-cart:focus {
    outline: 3px solid #2a7276;
    outline-offset: 2px;
}

.btn-add-to-cart.btn-primary {
    background: linear-gradient(135deg, #ee5ba0 0%, #d84a8a 100%);
    color: #ffffff;
}

.btn-add-to-cart.btn-primary:hover {
    background: linear-gradient(135deg, #d84a8a 0%, #c23a7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 91, 160, 0.4);
}

.btn-add-to-cart.btn-primary:active {
    transform: translateY(0);
}

.btn-add-to-cart:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-add-to-cart:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-add-to-cart-icon {
    font-size: 1.2rem;
}

/* ============================================================================
   3.5. SELECTION SUMMARY PANEL (Floating)
   ========================================================================= */

.selection-summary-panel {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 320px;
    max-width: calc(100vw - 2rem);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid #ee5ba0;
    z-index: 1000;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.selection-summary-panel.show {
    display: block !important;
}

.selection-summary-header {
    background: linear-gradient(135deg, #ee5ba0 0%, #d84a8a 100%);
    color: #ffffff;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selection-count-label {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selection-count-label i {
    font-size: 1.2rem;
}

.btn-clear-all {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-clear-all:hover {
    background: rgba(255, 255, 255, 0.35);
}

.selected-programs-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
}

.selected-program-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.selected-program-item:last-child {
    border-bottom: none;
}

.selected-program-name {
    font-size: 0.9rem;
    color: #495057;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 0.5rem;
}

.btn-remove-selection {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.btn-remove-selection:hover {
    background: #f8d7da;
}

.selection-summary-totals {
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.totals-row.registration-row {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.totals-label {
    font-weight: 500;
    color: #495057;
}

.totals-value {
    font-weight: 700;
    color: #2a7276;
}

.totals-row.registration-row .totals-value {
    color: #7cc142;
    font-weight: 600;
}

.selection-summary-footer {
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.btn-add-selected {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #7cc142 0%, #5da932 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-selected:hover {
    background: linear-gradient(135deg, #6db536 0%, #4e9627 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 193, 66, 0.4);
}

.btn-add-selected:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-add-selected.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

/* Selection Summary Mobile Responsive */
@media (max-width: 480px) {
    .selection-summary-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .selected-programs-list {
        max-height: 150px;
    }
}

/* ============================================================================
   4. LOGIN MODAL ENHANCEMENTS
   ========================================================================= */

.auth-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.auth-modal .modal-header {
    background: linear-gradient(135deg, #2a7276 0%, #1f5458 100%);
    color: #ffffff;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem 2rem;
    border-bottom: none;
}

.auth-modal .modal-header .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.auth-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.auth-modal .modal-header .btn-close:hover {
    opacity: 1;
}

.auth-modal .modal-body {
    padding: 2rem;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    color: #2a7276;
    background: #f8f9fa;
}

.auth-tab.active {
    color: #2a7276;
    border-bottom-color: #ee5ba0;
    background: transparent;
}

.auth-tab:focus {
    outline: 2px solid #2a7276;
    outline-offset: -2px;
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.auth-form-label.required::after {
    content: " *";
    color: #dc3545;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #ced4da;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.auth-input:hover {
    border-color: #adb5bd;
}

.auth-input:focus {
    outline: none;
    border-color: #2a7276;
    box-shadow: 0 0 0 3px rgba(42, 114, 118, 0.1);
}

.auth-input.error {
    border-color: #dc3545;
}

.auth-input.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.auth-input:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

/* Password Toggle */
.auth-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #2a7276;
}

.password-toggle:focus {
    outline: 2px solid #2a7276;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Auth Buttons */
.auth-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #ee5ba0 0%, #d84a8a 100%);
    color: #ffffff;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #d84a8a 0%, #c23a7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 91, 160, 0.4);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.auth-btn-secondary:hover {
    background: #5a6268;
}

.auth-btn:disabled,
.auth-btn.btn-loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-btn:focus {
    outline: 3px solid #2a7276;
    outline-offset: 2px;
}

/* Error & Success Messages */
.auth-error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #dc3545;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease;
}

.auth-success {
    background: #d4edda;
    color: #155724;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #4caf50;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease;
}

.auth-helper-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.auth-link {
    color: #2a7276;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #ee5ba0;
    text-decoration: underline;
}

/* ============================================================================
   5. ANIMATIONS
   ========================================================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================================================
   6. FLOATING CART BADGE
   ========================================================================= */

.cart-badge-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: linear-gradient(135deg, #ee5ba0 0%, #d84a8a 100%);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(238, 91, 160, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.cart-badge-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(238, 91, 160, 0.6);
}

.cart-badge-floating:active {
    transform: scale(0.95);
}

.cart-badge-floating:focus {
    outline: 3px solid #2a7276;
    outline-offset: 4px;
}

.cart-badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid #ffffff;
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================================================
   7. LOADING STATES
   ========================================================================= */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner-large {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

.loading-spinner-primary {
    border-color: rgba(42, 114, 118, 0.3);
    border-top-color: #2a7276;
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Skeleton Loading */
.skeleton-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: #e9ecef;
}

.skeleton-text {
    height: 1rem;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-text-short {
    width: 60%;
}

/* ============================================================================
   8. UTILITY CLASSES
   ========================================================================= */

.text-teal {
    color: #2a7276;
}

.text-pink {
    color: #ee5ba0;
}

.text-green {
    color: #7cc142;
}

.bg-teal {
    background-color: #2a7276;
}

.bg-pink {
    background-color: #ee5ba0;
}

.bg-green {
    background-color: #7cc142;
}

.border-teal {
    border-color: #2a7276 !important;
}

.border-pink {
    border-color: #ee5ba0 !important;
}

.border-green {
    border-color: #7cc142 !important;
}

/* Visibility */
.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

/* Spacing */
.mt-auto {
    margin-top: auto;
}

.mb-auto {
    margin-bottom: auto;
}

/* ============================================================================
   9. RESPONSIVE DESIGN
   ========================================================================= */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .program-card-image {
        height: 180px;
    }

    .program-card-name {
        font-size: 1.1rem;
        min-height: auto;
    }

    .programs-header h2 {
        font-size: 1.75rem;
    }

    .programs-header p {
        font-size: 1rem;
    }

    .auth-modal .modal-dialog {
        margin: 1rem;
    }

    .auth-modal .modal-body {
        padding: 1.5rem;
    }

    .cart-badge-floating {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .program-card {
        border-radius: 8px;
    }

    .program-card-image {
        height: 160px;
    }

    .program-card-body {
        padding: 1.25rem;
    }

    .program-card-name {
        font-size: 1.05rem;
    }

    .program-card-description {
        font-size: 0.9rem;
    }

    .program-card-price {
        padding: 0.875rem;
    }

    .btn-add-to-cart {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .programs-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .programs-header h2 {
        font-size: 1.5rem;
    }

    .programs-header p {
        font-size: 0.95rem;
    }

    .auth-tabs {
        gap: 0.25rem;
    }

    .auth-tab {
        padding: 0.875rem 0.5rem;
        font-size: 0.9rem;
    }

    .auth-modal .modal-body {
        padding: 1.25rem;
    }

    .auth-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }

    .auth-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .cart-badge-floating {
        bottom: 1rem;
        right: 1rem;
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .cart-badge-count {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
}

/* Extra small screens (360px and below) */
@media (max-width: 360px) {
    .programs-header h2 {
        font-size: 1.25rem;
    }

    .program-card-name {
        font-size: 1rem;
    }

    .program-card-price-value {
        font-size: 1rem;
    }
}

/* ============================================================================
   10. PRINT STYLES
   ========================================================================= */

@media print {
    .cart-badge-floating,
    .auth-modal,
    .btn-add-to-cart {
        display: none !important;
    }

    .program-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .program-card:hover {
        transform: none;
    }
}

/* ============================================================================
   11. ACCESSIBILITY ENHANCEMENTS
   ========================================================================= */

/* Focus visible for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    .program-card,
    .btn-add-to-cart,
    .auth-tab,
    .auth-input,
    .auth-btn,
    .cart-badge-floating {
        transition-property: transform, box-shadow, background-color, border-color;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .program-card {
        border: 2px solid currentColor;
    }

    .btn-add-to-cart,
    .auth-btn {
        border: 2px solid currentColor;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Focus ring for better keyboard navigation */
:focus-visible {
    outline: 3px solid #2a7276;
    outline-offset: 2px;
}

/* ============================================================================
   12. DARK MODE SUPPORT (Optional - for future implementation)
   ========================================================================= */

@media (prefers-color-scheme: dark) {
    /* Uncomment when dark mode is implemented
    .program-card {
        background: #2d3748;
        color: #e2e8f0;
    }

    .program-card-name {
        color: #63b3ed;
    }

    .program-card-description {
        color: #cbd5e0;
    }

    .auth-input {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    */
}
