/* 50/50 Raffle - Main Stylesheet */

:root {
    --primary-color: #0d7377;
    --secondary-color: #14a085;
    --accent-color: #00d9a5;
    --gold-color: #ffb84d;
    --success-color: #00d9a5;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dfe6e9;
    --shadow: 0 4px 20px rgba(13, 115, 119, 0.12);
    --shadow-md: 0 8px 30px rgba(13, 115, 119, 0.15);
    --shadow-lg: 0 12px 40px rgba(13, 115, 119, 0.2);
    --shadow-xl: 0 20px 60px rgba(13, 115, 119, 0.25);
    --gradient-primary: linear-gradient(135deg, #0d7377 0%, #14a085 50%, #00d9a5 100%);
    --gradient-hero: linear-gradient(135deg, #0d7377 0%, #14a085 30%, #00d9a5 70%, #14a085 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f0f9f7 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(13, 115, 119, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(20, 160, 133, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 217, 165, 0.06) 0%, transparent 50%),
        linear-gradient(-45deg, #f8f9fa, #ffffff, #f0f9f7, #ffffff);
    background-size: 400% 400%, 400% 400%, 400% 400%, 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
    opacity: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(13, 115, 119, 0.02) 25%, rgba(13, 115, 119, 0.02) 26%, transparent 27%, transparent 74%, rgba(20, 160, 133, 0.02) 75%, rgba(20, 160, 133, 0.02) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 217, 165, 0.02) 25%, rgba(0, 217, 165, 0.02) 26%, transparent 27%, transparent 74%, rgba(13, 115, 119, 0.02) 75%, rgba(13, 115, 119, 0.02) 76%, transparent 77%, transparent);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Age Verification Popup */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.age-popup.hidden {
    display: none;
}

.age-popup-content {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: slideUp 0.4s ease;
}

.age-popup-icon {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 10px;
    display: inline-block;
}

.age-popup-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.age-popup-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.age-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.age-btn-yes {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.3);
}

.age-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 115, 119, 0.4);
}

.age-btn-no {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.age-btn-no:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

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

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

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(13, 115, 119, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.age-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.3);
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hero-text-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

@media (max-width: 991px) {
    .hero-text-column {
        text-align: center;
    }
}

.hero-image-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-subtitle {
    font-size: 1.35rem;
    opacity: 0.95;
    line-height: 1.8;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-cta-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    align-self: flex-start;
    margin-top: 0.5rem;
}

@media (max-width: 991px) {
    .hero-cta-button {
        align-self: center;
    }
}

.hero-cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background: var(--bg-white);
    position: relative;
}

.content-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-dark);
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(13, 115, 119, 0.1);
}

.content-text p {
    margin-bottom: 1.5rem;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* License & Eligibility Sections */
.license-section,
.eligibility-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, #f0f9f7 50%, #e8f8f5 100%);
    position: relative;
}

.info-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(13, 115, 119, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.info-icon {
    font-size: 56px;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.info-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.license-number {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--bg-white);
    text-align: center;
    position: relative;
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-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 ease;
}

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

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3436 100%);
    color: white;
    padding: 3.5rem 0;
    margin-top: 4rem;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.footer-links a:hover::after {
    width: 80%;
}

.footer-license {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Modal */
.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);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: var(--bg-white);
    margin: auto;
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(13, 115, 119, 0.1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

/* Form Styles */
.entry-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Success Modal */
.success-icon {
    font-size: 64px;
    color: var(--success-color);
    text-align: center;
    margin-bottom: 1rem;
}

.success-message {
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.success-message strong {
    color: var(--text-dark);
}

#continueBtn {
    width: 100%;
    margin-top: 1rem;
}

/* Page Styles for Additional Pages */
.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.page-meta {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.content-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.content-subheading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.content-list {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.content-list li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-image-wrapper {
        transform: none;
    }

    .hero-image-wrapper:hover {
        transform: scale(1.02);
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .page-title {
        font-size: 2rem;
    }
}
