 :root {
     --primary-color: #0d47a1;
     --secondary-color: #00695c;
     --accent-color: #ffc107;
     --text-color: #333;
     --text-light: #f9f9f9;
     --bg-color: #ffffff;
     --bg-light: #f4f7f6;
     --border-color: #e0e0e0;
     --white: #ffffff;
     --primary-blue: #0d47a1;
     --primary-dark: #06213f;
     --bg-light: #ffffff;
     --bg-soft: #f5f7fb;
     --text-main: #111827;
     --text-muted: #6b7280;
     --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.16);
     --radius-lg: 14px;
     --radius-md: 10px;
 }

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

 body {
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
         "Helvetica Neue", Arial, sans-serif;
     line-height: 1.6;
     color: var(--text-color);
     background-color: var(--bg-light);
     display: flex;
     flex-direction: column;
     min-height: 100vh;
 }

 main {
     flex-grow: 1;
 }

 .container {
     width: 90%;
     max-width: 1100px;
     margin: 0 auto;
     padding: 2rem 0;
 }

 h1,
 h2,
 h3 {
     color: var(--primary-color);
     margin-bottom: 1rem;
     line-height: 1.3;
 }

 p {
     margin-bottom: 1rem;
 }

 a {
     color: var(--secondary-color);
     text-decoration: none;
 }

 a:hover {
     text-decoration: underline;
 }

 img {
     max-width: 100%;
     height: auto;
 }


 .btn {
     display: inline-block;
     padding: 0.8rem 1.5rem;
     border: none;
     border-radius: 5px;
     background-color: var(--secondary-color);
     color: var(--white);
     font-size: 1rem;
     font-weight: bold;
     text-align: center;
     cursor: pointer;
     transition: background-color 0.3s ease;
 }

 .btn:hover {
     background-color: #004d40;
     text-decoration: none;
 }

 .btn-accent {
     background-color: var(--accent-color);
     color: var(--text-color);
 }

 .btn-accent:hover {
     background-color: #ffb300;
 }


 .site-header {
     background-color: var(--bg-color);
     padding: 1rem 5%;
     border-bottom: 1px solid var(--border-color);
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
     position: sticky;
     top: 0;
     z-index: 100;
 }

 .nav-wrapper {
     display: flex;
     justify-content: space-between;
     align-items: center;
     max-width: 1200px;
     margin: 0 auto;
 }

 .logo {
     font-size: 1.5rem;
     font-weight: bold;
     color: var(--primary-color);
 }

 .logo a {
     color: inherit;
     text-decoration: none;
 }

 .nav-links {
     display: none;
     flex-direction: column;
     list-style: none;
     position: absolute;
     top: 100%;
     left: 0;
     width: 100%;
     background-color: var(--bg-color);
     border-top: 1px solid var(--border-color);
     padding: 1rem;
     box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
 }

 .nav-links.active {
     display: flex;
 }

 .nav-links li {
     margin: 0.5rem 0;
     text-align: center;
 }

 .nav-links a {
     font-weight: 500;
     color: var(--text-color);
     padding: 0.5rem;
     display: block;
 }

 .nav-links a.active,
 .nav-links a:hover {
     color: var(--primary-color);
     text-decoration: none;
 }

 .hamburger {
     display: block;
     cursor: pointer;
     font-size: 1.8rem;
     color: var(--primary-color);
 }


 .footer-content {
     max-width: 1100px;
     margin: 0 auto;
 }

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

 .footer-links a {
     color: var(--text-light);
 }

 .footer-disclaimer {
     max-width: 700px;
     margin: 1rem auto;
     line-height: 1.4;
     color: #ccc;
 }

 #copyright {
     margin-top: 1rem;
     color: #aaa;
 }


 .hero {
     background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
         url("../img/hero.png") no-repeat center center/cover;
     color: var(--white);
     padding: 4rem 5%;
     text-align: center;
     min-height: 50vh;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
 }

 .hero h1 {
     color: var(--white);
     font-size: 2.5rem;
     margin-bottom: 1rem;
 }

 .hero p {
     font-size: 1.1rem;
     max-width: 600px;
     margin-bottom: 2rem;
 }

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

 .hero-badges {
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     gap: 0.5rem;
     margin-top: 2rem;
 }

 .hero-badge {
     background-color: rgba(255, 255, 255, 0.15);
     color: var(--white);
     padding: 0.4rem 0.8rem;
     border-radius: 20px;
     font-size: 0.85rem;
     border: 1px solid rgba(255, 255, 255, 0.3);
 }


 .featured-lotteries {
     background-color: var(--bg-color);
 }

 .lottery-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 1.5rem;
     margin-top: 1.5rem;
 }

 .lottery-card {
     background-color: var(--bg-color);
     border: 1px solid var(--border-color);
     border-radius: 8px;
     padding: 1.5rem;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
     text-align: center;
     display: flex;
     flex-direction: column;
 }

 .lottery-card .icon {
     font-size: 2.5rem;
     color: var(--secondary-color);
     margin-bottom: 1rem;
 }

 .lottery-card h3 {
     font-size: 1.5rem;
     margin-bottom: 0.5rem;
 }

 .lottery-card p {
     flex-grow: 1;
     margin-bottom: 1.5rem;
 }


 .features-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 1.5rem;
     margin-top: 1.5rem;
 }

 .feature-item {
     display: flex;
     align-items: center;
     gap: 1rem;
     background-color: var(--bg-color);
     padding: 1rem;
     border-radius: 5px;
 }

 .feature-item .icon {
     font-size: 1.8rem;
     color: var(--primary-color);
     min-width: 40px;
     text-align: center;
 }

 .feature-item h3 {
     font-size: 1.1rem;
     color: var(--text-color);
     margin-bottom: 0.25rem;
 }


 .responsible-play {
     background-color: var(--bg-color);
     padding: 2rem;
     border-radius: 8px;
     border: 1px solid var(--border-color);
     text-align: center;
 }


 .form-container {
     width: 100%;
     margin: 2rem auto;
     padding: 2rem;
     background-color: var(--bg-color);
     border-radius: 8px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
 }

 .form-container h1 {
     text-align: center;
 }

 .form-group {
     margin-bottom: 1.25rem;
 }

 .form-group label {
     display: block;
     font-weight: 500;
     margin-bottom: 0.5rem;
 }

 .form-group input[type="text"],
 .form-group input[type="email"],
 .form-group input[type="password"],
 .form-group input[type="number"],
 .form-group select,
 .form-group textarea {
     width: 100%;
     padding: 0.8rem;
     border: 1px solid var(--border-color);
     border-radius: 5px;
     font-size: 1rem;
 }

 .form-group input:focus,
 .form-group select:focus,
 .form-group textarea:focus {
     outline: none;
     border-color: var(--primary-color);
     box-shadow: 0 0 5px rgba(13, 71, 161, 0.3);
 }

 .form-group textarea {
     min-height: 120px;
     resize: vertical;
 }

 .form-group .btn {
     width: 100%;
 }

 .form-links {
     text-align: center;
     margin-top: 1rem;
     font-size: 0.9rem;
 }

 .form-links a {
     margin: 0 0.5rem;
 }

 .checkbox-group {
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .checkbox-group input {
     width: auto;
 }

 .checkbox-group label {
     margin: 0;
     font-weight: normal;
 }


 .form-message {
     padding: 1rem;
     margin-bottom: 1rem;
     border-radius: 5px;
     text-align: center;
     display: none;
 }

 .form-message.success {
     background-color: #e8f5e9;
     color: #2e7d32;
     display: block;
 }

 .form-message.error {
     background-color: #ffebee;
     color: #c62828;
     display: block;
 }


 .contact-wrapper {
     display: grid;
     grid-template-columns: 1fr;
     gap: 2rem;
 }

 .contact-info {
     background-color: var(--bg-color);
     padding: 2rem;
     border-radius: 8px;
 }

 .contact-info ul {
     list-style: none;
 }

 .contact-info li {
     display: flex;
     align-items: center;
     gap: 1rem;
     margin-bottom: 1.5rem;
     font-size: 1.05rem;
 }

 .contact-info .icon {
     font-size: 1.5rem;
     color: var(--primary-color);
     width: 30px;
     text-align: center;
 }

 .faq-section {
     background-color: var(--bg-color);
     padding: 2rem;
     border-radius: 8px;
 }

 .faq-item {
     margin-bottom: 1.5rem;
 }

 .faq-item h3 {
     font-size: 1.1rem;
     color: var(--text-color);
 }


 .buy-form-wrapper {
     display: grid;
     grid-template-columns: 1fr;
     gap: 2rem;
 }

 .ticket-selection {
     background-color: var(--bg-color);
     padding: 2rem;
     border-radius: 8px;
 }

 .number-picker {
     margin-top: 1.5rem;
 }

 .number-grid {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
     margin-bottom: 1rem;
 }

 .number-grid input {
     width: 60px;
     height: 50px;
     text-align: center;
     font-size: 1.1rem;
     padding: 0.5rem;
 }

 .order-summary {
     background-color: var(--bg-light);
     padding: 2rem;
     border-radius: 8px;
     border: 1px solid var(--border-color);
     position: sticky;
     top: 100px;
 }

 .summary-item {
     display: flex;
     justify-content: space-between;
     margin-bottom: 1rem;
     font-size: 1.05rem;
 }

 .summary-total {
     font-size: 1.5rem;
     font-weight: bold;
     border-top: 2px solid var(--border-color);
     padding-top: 1rem;
     margin-top: 1rem;
 }


 .modal {
     display: none;
     position: fixed;
     z-index: 1000;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     overflow: auto;
     background-color: rgba(0, 0, 0, 0.6);
 }

 .modal-content {
     background-color: #fff;
     margin: 15% auto;
     padding: 2rem;
     border: 1px solid #888;
     width: 90%;
     max-width: 500px;
     border-radius: 8px;
     text-align: center;
     position: relative;
 }

 .modal-close {
     position: absolute;
     top: 10px;
     right: 20px;
     color: #aaa;
     font-size: 2rem;
     font-weight: bold;
     cursor: pointer;
 }

 .modal-close:hover,
 .modal-close:focus {
     color: #000;
 }


 @media (min-width: 768px) {

     .hamburger {
         display: none;
     }

     .nav-links {
         display: flex;
         flex-direction: row;
         position: static;
         background-color: transparent;
         border: none;
         box-shadow: none;
         width: auto;
         padding: 0;
     }

     .nav-links li {
         margin: 0 0.75rem;
     }


     .container {
         padding: 3rem 0;
     }

     .hero h1 {
         font-size: 3.5rem;
     }

     .lottery-grid {
         grid-template-columns: repeat(3, 1fr);
     }

     .features-grid {
         grid-template-columns: repeat(2, 1fr);
     }

     .contact-wrapper {
         grid-template-columns: 1fr 1.5fr;
     }

     .buy-form-wrapper {
         grid-template-columns: 2fr 1fr;
         align-items: flex-start;
     }
 }

 .footer-imgs {
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     align-items: center;
 }

 .footer-imgs img {
     padding: 12px;
     margin: 12px;
     height: 55px;
     background: white;
     border-radius: 10px;
 }

 .age-overlay {
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.78);
     display: none;
     align-items: center;
     justify-content: center;
     z-index: 9999;
     padding: 16px;
 }

 .age-modal {
     max-width: 480px;
     width: 100%;
     background: var(--bg-light);
     border-radius: 18px;
     padding: 26px 24px 20px;
     box-shadow: var(--shadow-soft);
     border-top: 4px solid var(--primary-blue);
     text-align: left;
 }

 .age-modal h2 {
     margin: 0 0 10px;
     font-size: 1.4rem;
     color: var(--primary-blue);
     font-weight: 700;
 }

 .age-modal p {
     margin: 0 0 18px;
     font-size: 0.95rem;
     color: var(--text-main);
     line-height: 1.5;
 }

 .age-buttons {
     display: flex;
     gap: 10px;
     margin-bottom: 10px;
 }

 .age-note {
     display: block;
     font-size: 0.78rem;
     color: var(--text-muted);
     line-height: 1.4;
 }

 .cookie-banner {
     position: fixed;
     left: 50%;
     bottom: 20px;
     transform: translateX(-50%);
     max-width: 900px;
     width: calc(100% - 32px);
     background: var(--bg-light);
     border-radius: 18px;
     box-shadow: var(--shadow-soft);
     padding: 18px 20px 14px;
     z-index: 9998;
     display: none;
     border-left: 4px solid var(--primary-blue);
 }

 .cookie-inner {
     display: flex;
     flex-wrap: wrap;
     gap: 16px;
     align-items: center;
     justify-content: space-between;
 }

 .cookie-text h3 {
     margin: 0 0 6px;
     font-size: 1rem;
     color: var(--primary-blue);
     font-weight: 700;
 }

 .cookie-text p {
     margin: 0;
     font-size: 0.9rem;
     color: var(--text-main);
     line-height: 1.4;
 }

 .cookie-actions {
     display: flex;
     flex-wrap: wrap;
     gap: 10px;
 }

 .cookie-settings {
     margin-top: 14px;
     padding-top: 12px;
     border-top: 1px solid #e5e7eb;
     display: none;
 }

 .cookie-settings h4 {
     margin: 0 0 6px;
     font-size: 0.95rem;
     color: var(--primary-blue);
     font-weight: 700;
 }

 .cookie-settings-info {
     margin: 0 0 10px;
     font-size: 0.85rem;
     color: var(--text-muted);
 }

 .cookie-option {
     display: grid;
     grid-template-columns: auto 1fr;
     gap: 10px;
     align-items: flex-start;
     margin-bottom: 8px;
     padding: 8px 10px;
     border-radius: var(--radius-md);
     background: var(--bg-soft);
 }

 .cookie-option input[type="checkbox"] {
     margin-top: 4px;
 }

 .cookie-option span {
     font-size: 0.83rem;
     color: var(--text-main);
     line-height: 1.4;
 }

 .cookie-option strong {
     font-size: 0.86rem;
     color: var(--primary-dark);
 }

 .cookie-settings-buttons {
     display: flex;
     justify-content: flex-end;
     margin-top: 6px;
 }

 .btn-primary,
 .btn-ghost {
     cursor: pointer;
     border-radius: 999px;
     font-size: 0.9rem;
     padding: 8px 16px;
     border: none;
     transition: all 0.18s ease;
     white-space: nowrap;
 }

 .btn-primary {
     background: var(--primary-blue);
     color: #ffffff;
     box-shadow: 0 10px 18px rgba(13, 71, 161, 0.25);
 }

 .btn-primary:hover {
     background: #0b3d8a;
     box-shadow: 0 14px 24px rgba(13, 71, 161, 0.32);
     transform: translateY(-1px);
 }

 .btn-ghost {
     background: #ffffff;
     color: var(--primary-blue);
     border: 1px solid rgba(13, 71, 161, 0.55);
 }

 .btn-ghost:hover {
     background: rgba(13, 71, 161, 0.04);
     border-color: var(--primary-blue);
 }

 @media (max-width: 640px) {
     .cookie-inner {
         align-items: flex-start;
     }

     .cookie-actions {
         width: 100%;
         justify-content: flex-start;
     }

     .age-modal {
         padding: 22px 18px 16px;
     }
 }

 .legal-content {
     background-color: var(--bg-color);
     padding: 2rem;
     border-radius: 8px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
 }

 .legal-content h2 {
     margin-top: 2rem;
     font-size: 1.5rem;
     color: var(--primary-color);
 }

 .legal-content ul {
     margin-left: 1.5rem;
     margin-bottom: 1.5rem;
 }

 .legal-content li {
     margin-bottom: 0.5rem;
 }

 .cookie-table {
     width: 100%;
     border-collapse: collapse;
     margin: 1.5rem 0;
     font-size: 0.95rem;
 }

 .cookie-table th,
 .cookie-table td {
     border: 1px solid var(--border-color);
     padding: 12px;
     text-align: left;
 }

 .cookie-table th {
     background-color: var(--bg-light);
     font-weight: bold;
     color: var(--primary-color);
 }

 .cookie-table tr:nth-child(even) {
     background-color: #fafafa;
 }