/* CarpiAuto Mega Giveaway Landing Page CSS */
/* Mobile-First Design with Metallic Gold Theme */

/* CSS Variables */
:root {
    /* Primary Colors - Based on Logo */
    --primary-gold: #D4AF37;
    --primary-gold-light: #E6C866;
    --primary-gold-dark: #B8941F;
    --secondary-grey: #2C2C2C;
    --secondary-grey-light: #404040;
    --accent-pink: #E91E63;
    --accent-pink-light: #F48FB1;
    
    /* Background Colors */
    --bg-black: #000000;
    --bg-dark: #1A1A1A;
    --bg-card: #2A2A2A;
    
    /* Text Colors */
    --text-white: #FFFFFF;
    --text-grey: #CCCCCC;
    --text-grey-light: #E0E0E0;
    
    /* Gradients */
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #E6C866 50%, #B8941F 100%);
    --dark-gradient: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%);
    
    /* Shadows */
    --gold-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    --dark-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--secondary-grey);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-sm);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-grey);
    font-size: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Main Container */
.main-container {
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

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

/* Hero Section */
.hero-section {
    background: var(--dark-gradient);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.logo-container {
    margin-bottom: var(--spacing-lg);
}

.logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(var(--gold-shadow));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.headline-container {
    margin-bottom: var(--spacing-xl);
}

.main-headline-small {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.main-headline-big {
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    animation: headlineGlow 2s ease-in-out infinite alternate;
}

@keyframes headlineGlow {
    from { text-shadow: 0 0 30px rgba(212, 175, 55, 0.5); }
    to { text-shadow: 0 0 50px rgba(212, 175, 55, 0.8); }
}

.sub-headline {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-grey-light);
    margin-bottom: var(--spacing-md);
}

.anniversary-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--gold-gradient);
    color: var(--bg-black);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-xl);
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
    box-shadow: var(--gold-shadow);
}

.anniversary-badge i {
    font-size: 1.1rem;
}

.winners-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.winners-count {
    text-align: center;
}

.winners-count .count {
    display: block;
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    color: var(--primary-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.winners-count .label {
    display: block;
    font-size: 1rem;
    color: var(--text-grey);
    font-weight: var(--font-weight-medium);
}

.month-info {
    text-align: center;
}

.month-info .month {
    display: block;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent-pink);
}

.month-info .year {
    display: block;
    font-size: 1rem;
    color: var(--text-grey);
}

/* Prizes Section */
.prizes-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-gold);
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.prize-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
}

.prize-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--gold-shadow);
    border-color: var(--primary-gold);
}

.prize-card.featured {
    border-color: var(--primary-gold);
    box-shadow: var(--gold-shadow);
}

.prize-card.featured::before {
    content: 'FEATURED';
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--gold-gradient);
    color: var(--bg-black);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: var(--font-weight-bold);
    z-index: 2;
}

.prize-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.prize-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.prize-card:hover .prize-image img {
    transform: scale(1.1);
}

.prize-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-gold);
    padding: var(--spacing-sm);
    border-radius: 50%;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.prize-card:hover .prize-overlay {
    opacity: 1;
}

.prize-content {
    padding: var(--spacing-md);
}

.prize-content h4 {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-gold);
    margin-bottom: var(--spacing-xs);
}

.prize-content p {
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.voucher-value {
    background: var(--gold-gradient);
    color: var(--bg-black);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
    display: inline-block;
}

.additional-prizes {
    text-align: center;
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-gold);
}

.additional-prizes h4 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
}

.additional-prizes p {
    color: var(--text-grey-light);
    font-size: 1.1rem;
}

/* Form Section */
.form-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-black);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-gold);
    box-shadow: var(--gold-shadow);
}

.form-title {
    text-align: center;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
}

.form-subtitle {
    text-align: center;
    color: var(--text-grey-light);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

.giveaway-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: var(--font-weight-semibold);
    color: var(--text-white);
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

.form-group input,
.form-group select {
    padding: var(--spacing-md);
    border: 2px solid var(--secondary-grey);
    border-radius: var(--radius-md);
    background: var(--bg-dark);
    color: var(--text-white) !important;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    -webkit-text-fill-color: var(--text-white) !important;
}

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

.form-group input::placeholder {
    color: var(--text-grey);
}

/* Ensure input text is visible */
.form-group input[type="text"],
.form-group input[type="tel"] {
    color: var(--text-white) !important;
    -webkit-text-fill-color: var(--text-white) !important;
}

.error-message {
    color: var(--accent-pink);
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
    min-height: 1.2rem;
}

.submit-btn {
    background: var(--gold-gradient);
    color: var(--bg-black);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-md);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--gold-shadow);
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: block;
}

.terms-text {
    text-align: center;
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-top: var(--spacing-md);
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-dark);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.branch-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--secondary-grey);
    transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.branch-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

.branch-card h4 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-gold);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-grey-light);
}

.contact-item i {
    color: var(--primary-gold);
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: var(--accent-pink);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--accent-pink-light);
}

.location-link {
    color: var(--accent-pink) !important;
}

/* Footer */
.footer {
    background: var(--bg-black);
    padding: var(--spacing-xl) 0;
    border-top: 2px solid var(--primary-gold);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-logo-img {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(var(--gold-shadow));
}

.footer-text {
    text-align: center;
    color: var(--text-grey);
}

.footer-text p {
    margin-bottom: var(--spacing-xs);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-gold);
    box-shadow: var(--gold-shadow);
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: var(--spacing-lg);
    text-align: center;
    border-bottom: 1px solid var(--secondary-grey);
}

.modal-header i {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.success-icon {
    color: #4CAF50;
}

.error-icon {
    color: var(--accent-pink);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-white);
}

.modal-body {
    padding: var(--spacing-lg);
    text-align: center;
}

.modal-body p {
    color: var(--text-grey-light);
    margin-bottom: var(--spacing-sm);
}

.modal-footer {
    padding: var(--spacing-lg);
    text-align: center;
    border-top: 1px solid var(--secondary-grey);
}

.modal-btn {
    background: var(--gold-gradient);
    color: var(--bg-black);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.modal-btn:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .main-headline-small {
        font-size: 1.5rem;
    }
    
    .main-headline-big {
        font-size: 2.2rem;
    }
    
    .sub-headline {
        font-size: 1.2rem;
    }
    
    .winners-info {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .prizes-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .form-container {
        padding: var(--spacing-lg);
    }
    
    .form-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-headline-small {
        font-size: 1.3rem;
    }
    
    .main-headline-big {
        font-size: 1.8rem;
    }
    
    .sub-headline {
        font-size: 1rem;
    }
    
    .winners-count .count {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: var(--spacing-md);
    }
    
    .prize-image {
        height: 150px;
    }
}

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

/* Print Styles */
@media print {
    .hero-section,
    .prizes-section,
    .form-section,
    .contact-section {
        break-inside: avoid;
    }
}
