/* ========================================
   DENEBOR CATALOG - MODERN STYLE
   ======================================== */

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --success: #48bb78;
    --danger: #f56565;
    --dark: #1a202c;
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-600: #718096;
    --gray-900: #1a202c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 0; /* Default - verrà aggiunto padding quando checkout bar è visibile */
    color: var(--dark);
}

body.checkout-bar-visible {
    padding-bottom: 90px; /* Spazio per checkout bar */
}

@media (max-width: 768px) {
    body.checkout-bar-visible {
        padding-bottom: 100px; /* Più spazio su mobile */
    }
}

/* ========================================
   PAGE HEADER (Loghi)
   ======================================== */

.page-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    margin: -20px -20px 2rem -20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vendor-logo {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
}

.denebor-logo {
    height: 50px;
    max-width: 100px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .page-header {
        padding: 0.75rem 1rem;
        margin: -20px -20px 1.5rem -20px;
    }

    .vendor-logo {
        max-height: 35px;
        max-width: 100px;
    }

    .denebor-logo {
        height: 50px;
        max-width: 80px;
    }
}

#catalogTitle {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   TOP BAR
   ======================================== */

.top-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   FILTERS
   ======================================== */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
}

.filters button {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--gray-300);
    border-radius: 50px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.filters button:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.filters button.active {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ========================================
   SEARCH BOX
   ======================================== */

.search-box input {
    padding: 0.7rem 1.2rem;
    border: 2px solid var(--gray-300);
    border-radius: 50px;
    min-width: 250px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box input::placeholder {
    color: var(--gray-600);
}

/* ========================================
   PRODUCT GRID
   ======================================== */

.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    max-width: 1400px;
    margin: 0 auto;
    will-change: contents;
}

/* ========================================
   PRODUCT CARD
   ======================================== */

.card {
    background: white;
    border: 1px solid var(--gray-200);
    padding: 1.2rem;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
    border-color: var(--primary);
}

.card[style*="none"] {
    opacity: 0;
    transform: scale(0.95);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--gray-50);
}

.card>div:first-of-type {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.descrizione {
    flex-grow: 1;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
    min-height: 3em; /* Altezza minima fissa per uniformità */
    display: flex;
    flex-direction: column;
}

.descrizione-text {
    flex-grow: 1;
    max-height: 4.5em; /* Altezza massima per il testo */
    overflow: hidden;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.descrizione-more {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem auto 0;
    width: 24px;
    height: 24px;
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    font-style: italic;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    text-decoration: none;
}

.descrizione-more:hover {
    color: white;
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.descrizione-more:active {
    transform: scale(0.95);
}

.descrizione-more:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   DESCRIPTION MODAL
   ======================================== */

.description-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.description-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.description-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.description-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--dark);
}

.description-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.description-modal-close:hover {
    background: var(--gray-100);
    color: var(--dark);
}

.description-modal-close:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.description-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.description-modal-body p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .descrizione {
        min-height: 2.5em;
        max-height: 3.5em;
    }
    
    .description-modal-content {
        max-width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .description-modal-header,
    .description-modal-body {
        padding: 1rem;
    }
    
    .description-modal-header h3 {
        font-size: 1.1rem;
    }
}

.prezzo {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ========================================
   QUANTITY CONTROLS
   ======================================== */

.qty {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: auto;
}

.qty button,
.qty-btn-minus,
.qty-btn-plus {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.qty button:hover,
.qty-btn-minus:hover,
.qty-btn-plus:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.qty button:active,
.qty-btn-minus:active,
.qty-btn-plus:active {
    transform: scale(0.95);
}

.qty span,
.qty-display {
    min-width: 30px;
    display: inline-block;
    text-align: center;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

/* ========================================
   VIEW ONLY MODE
   ======================================== */

.card.view-only .qty button {
    background: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
    font-size: 0.75rem;
    width: 100%;
    border-radius: 8px;
    height: 40px;
    padding: 0 12px;
}

.card.view-only .qty button:hover {
    transform: none;
    box-shadow: none;
}

/* ========================================
   CHECKOUT BAR
   ======================================== */

#checkoutBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, white 0%, rgba(255, 255, 255, 0.98) 90%, transparent 100%);
    border-top: 1px solid var(--gray-200);
    padding: 1.2rem;
    display: flex;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(10px);
}

#checkoutBtn {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

#checkoutBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

#checkoutBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   TIME INDICATOR
   ======================================== */

.time-indicator {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 2px solid var(--success);
    font-weight: 500;
}

/* ========================================
   ERROR/EXPIRED STATES
   ======================================== */

.expired-container,
.error-container {
    text-align: center;
    padding: 3rem;
    font-family: inherit;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.expired-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.expired-title {
    color: var(--danger);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.expired-message {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.expired-info {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.expired-command {
    margin: 0.5rem 0 0 0;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 0.8rem;
    border-radius: 8px;
    border: 2px solid var(--gray-200);
}

.error-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.25rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--dark);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: #2d3748;
    transform: translateY(-2px);
}

/* ========================================
   CART WIDGET
   ======================================== */

.cart-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 340px;
    max-width: calc(100vw - 40px);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    z-index: 1000;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cart-widget.collapsed {
    width: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 16px 16px 0 0;
    position: relative;
}

.cart-title {
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.cart-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all 0.2s ease;
}

.cart-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cart-content {
    max-height: 250px;
    overflow-y: auto;
    padding: 0.8rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.cart-item:hover {
    background: var(--gray-50);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.cart-item-remove {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.8rem;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    transform: scale(1.1);
    background: #e53e3e;
}

.cart-total {
    padding: 1rem;
    background: var(--gray-50);
    border-top: 2px solid var(--gray-200);
    border-radius: 0 0 16px 16px;
    font-weight: 700;
    text-align: center;
    color: var(--primary);
    font-size: 1.1rem;
}

/* ========================================
   LOADING OVERLAY
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 24px;
    font-size: 18px;
    color: white;
    font-weight: 600;
}

.loading-subtext {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   CART NOTIFICATION BADGE
   ======================================== */

.cart-notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffd700;
    color: var(--dark);
    border-radius: 12px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    animation: badgePop 0.3s ease-out;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    #catalogTitle {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .card {
        padding: 1rem;
    }

    .card img {
        height: 140px;
    }

    .cart-widget {
        width: 300px;
        max-width: calc(100vw - 20px); /* ✅ Assicura che non esca dallo schermo */
        right: 10px;
        bottom: 90px;
    }
    
    /* ✅ Su schermi molto piccoli, riduci dimensione widget */
    @media (max-width: 480px) {
        .cart-widget {
            width: 260px;
            max-width: calc(100vw - 20px);
        }
    }
    
    /* ✅ Quando cart-widget è visibile, aggiungi padding-bottom per permettere scroll */
    body.cart-widget-visible .grid {
        padding-bottom: 200px; /* Spazio extra per scrollare oltre l'ultima riga */
    }

    .top-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
        min-width: unset;
    }
    

    .filters {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) transparent;
        padding: 0.5rem 0;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 0.75rem;
        /* Nasconde scrollbar su Safari mobile ma mantiene scroll */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .filters::-webkit-scrollbar {
        display: none;
    }
    
    .filters button {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
        min-width: fit-content;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    #catalogTitle {
        font-size: 1.5rem;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

.card,
.qty button,
.filters button {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.cart-content {
    -webkit-overflow-scrolling: touch;
}

.card img {
    content-visibility: auto;
}

/* Completed overlay */
#completedOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

#completedOverlay>div {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#completedOverlay h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

#completedOverlay p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ========================================
   REGISTRATION MODAL
   ======================================== */

.registration-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.registration-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.registration-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    line-height: 1;
}

.registration-close:hover,
.registration-close:focus {
    color: var(--primary);
}

.registration-modal-content h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.registration-subtitle {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

#registrationFormContainer {
    margin-top: 1rem;
}

#registrationFormContainer .form-group {
    margin-bottom: 1.5rem;
}

#registrationFormContainer .form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#registrationFormContainer .form-group input,
#registrationFormContainer .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#registrationFormContainer .form-group input:focus,
#registrationFormContainer .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#registrationFormContainer .form-group input:read-only {
    background-color: var(--gray-50);
    cursor: not-allowed;
}

/* Phone Input con Prefisso */
#registrationFormContainer .phone-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

#registrationFormContainer .phone-prefix {
    flex: 0 0 140px;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#registrationFormContainer .phone-prefix:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#registrationFormContainer .phone-number {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#registrationFormContainer .phone-number:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Address Validation Status */
#registrationFormContainer .address-validation-status {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#registrationFormContainer .address-validation-status.validating {
    background: var(--gray-100);
    color: var(--gray-600);
}

#registrationFormContainer .address-validation-status.validated {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#registrationFormContainer .address-validation-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#registrationFormContainer .help-text {
    color: var(--gray-600);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.25rem;
}

#registrationFormContainer .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#registrationFormContainer .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.25rem;
    cursor: pointer;
}

#registrationFormContainer .checkbox-group label {
    font-weight: normal;
    cursor: pointer;
    line-height: 1.5;
}

#registrationFormContainer .button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

#registrationFormContainer .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

#registrationFormContainer .btn-primary {
    background: var(--primary);
    color: white;
}

#registrationFormContainer .btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#registrationFormContainer .btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

#registrationFormContainer .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .registration-modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
    }
}