/**
 * ============================================
 * GIGI'S AUCTION BOOKING - PREMIUM STYLES V2.0
 * ============================================
 * Modern, luxury auction house aesthetic
 * Mobile-first, responsive design
 * ============================================
 */

/* ============================================
   CSS VARIABLES - DESIGN SYSTEM
   ============================================ */
:root {
    /* Primary Colors */
    --gigi-gold: #d4af37;
    --gigi-gold-light: #f4d03f;
    --gigi-gold-dark: #b8941f;
    
    /* Neutral Colors */
    --gigi-navy: #2c3e50;
    --gigi-navy-light: #34495e;
    --gigi-gray-dark: #333333;
    --gigi-gray: #666666;
    --gigi-gray-light: #999999;
    --gigi-gray-lighter: #e0e0e0;
    --gigi-gray-lightest: #f8f9fa;
    
    /* Semantic Colors */
    --gigi-success: #28a745;
    --gigi-warning: #ffc107;
    --gigi-danger: #dc3545;
    --gigi-info: #17a2b8;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.3);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */
.gigi-booking-container *,
.gigi-lot-catalogue *,
.gigi-bid-form * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================
   BOOKING FORM CONTAINER
   ============================================ */
.gigi-booking-container {
    max-width: 700px;
    margin: var(--spacing-xxl) auto;
    padding: var(--spacing-xxl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
}

.gigi-booking-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gigi-gold), var(--gigi-gold-light));
}

.gigi-booking-container h3 {
    text-align: center;
    color: var(--gigi-navy);
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.gigi-booking-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gigi-gold), var(--gigi-gold-light));
    border-radius: var(--radius-full);
}

/* ============================================
   EVENT SELECTION
   ============================================ */
.event-selection {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gigi-gold);
    transition: all var(--transition-base);
}

.event-selection:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.event-selection label {
    display: block;
    font-weight: 600;
    color: var(--gigi-navy);
    margin-bottom: var(--spacing-sm);
    font-size: 16px;
    letter-spacing: 0.3px;
}

.event-selection select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gigi-gray-lighter);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font-primary);
    background: white;
    color: var(--gigi-gray-dark);
    transition: all var(--transition-base);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.event-selection select:hover {
    border-color: var(--gigi-gold);
}

.event-selection select:focus {
    outline: none;
    border-color: var(--gigi-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ============================================
   EVENT INFO CARD
   ============================================ */
.event-info {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
    border-left: 4px solid var(--gigi-gold);
    box-shadow: var(--shadow-sm);
}

.event-info h4 {
    color: var(--gigi-gold-dark);
    margin-bottom: var(--spacing-md);
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.event-info p {
    margin: var(--spacing-sm) 0;
    color: var(--gigi-gray);
    font-size: 15px;
    line-height: 1.6;
}

.event-info p strong {
    color: var(--gigi-navy);
    font-weight: 600;
}

/* ============================================
   FORM LAYOUT
   ============================================ */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gigi-navy);
    margin-bottom: var(--spacing-sm);
    font-size: 15px;
    letter-spacing: 0.3px;
}

.form-group label .required {
    color: var(--gigi-danger);
    margin-left: 2px;
}

/* ============================================
   FORM INPUTS
   ============================================ */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gigi-gray-lighter);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--gigi-gray-dark);
    background: white;
    transition: all var(--transition-base);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--gigi-gold-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gigi-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gigi-gray-light);
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.submit-button {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--gigi-gold) 0%, var(--gigi-gold-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background: var(--gigi-gray-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   SUCCESS/ERROR MESSAGES
   ============================================ */
.gigi-message {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 15px;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

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

.gigi-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid var(--gigi-success);
}

.gigi-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid var(--gigi-danger);
}

.gigi-message.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid var(--gigi-warning);
}

/* ============================================
   QR CODE MODAL
   ============================================ */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

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

.qr-modal-content {
    background: white;
    padding: var(--spacing-xxl);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

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

.qr-modal-content h3 {
    color: var(--gigi-navy);
    font-size: 28px;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.qr-modal-content p {
    color: var(--gigi-gray);
    margin-bottom: var(--spacing-lg);
    font-size: 16px;
}

.qr-modal-content img {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: var(--spacing-lg) 0;
    border: 4px solid var(--gigi-gold);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.qr-close-button {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gigi-gray-lightest);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    font-size: 20px;
    color: var(--gigi-gray);
}

.qr-close-button:hover {
    background: var(--gigi-gold);
    color: white;
    transform: rotate(90deg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .gigi-booking-container {
        padding: var(--spacing-lg);
        margin: var(--spacing-lg) auto;
    }
    
    .gigi-booking-container h3 {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .submit-button {
        font-size: 16px;
        padding: 14px 28px;
    }
    
    .qr-modal-content {
        padding: var(--spacing-lg);
    }
    
    .qr-modal-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .gigi-booking-container {
        padding: var(--spacing-md);
    }
    
    .event-selection,
    .event-info {
        padding: var(--spacing-md);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .gigi-booking-container {
        box-shadow: none;
        border: 1px solid var(--gigi-gray-lighter);
    }
    
    .submit-button {
        display: none;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--gigi-gold);
    outline-offset: 2px;
}

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