/* OZsweepstakes Global Styles */

/* Import Tailwind CSS */
@import url('https://cdn.tailwindcss.com');

/* Import Noto Sans font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');

/* CSS Custom Properties for Colors */
:root {
  --color-snow-white: #FFFAFA;
  --color-anti-flash-white: #F2F3F4;
  --color-near-black: #111111;
  --color-medium-dark-blue: #087bbd;
  --color-darker-blue: #055a8e;
  --color-orange-crayola: #FF7538;
  --color-canadian-red: #D80621;
  --color-platinum: #E5E4E2;
  --color-pure-black: #000000;
}

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

body {
  font-family: 'Noto Sans', sans-serif;
  background-color: var(--color-anti-flash-white);
  color: var(--color-near-black);
  line-height: 1.6;
}

/* Core Layout Structure - Section Container */
.section-container {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  background-color: rgba(255, 250, 250, 0.8);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 60px;
}

.section-container:first-of-type {
  margin-top: 64px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  text-align: justify;
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--color-medium-dark-blue);
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover,
a:focus,
a:active {
  color: var(--color-darker-blue);
  text-shadow: 0 0 5px rgba(8, 123, 189, 0.5);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:focus {
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: linear-gradient(to bottom, var(--color-orange-crayola), #e6672b);
  color: #FFFFFF !important;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: #F5F5F5 !important;
  text-decoration: none;
}

.btn-primary:active,
.btn-primary:focus {
  background: linear-gradient(to top, var(--color-orange-crayola), #e6672b);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  color: #F5F5F5 !important;
  text-decoration: none;
}

/* Specific override for button links */
a.btn-primary,
a.btn-primary:visited {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active {
  color: #F5F5F5 !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

.btn-secondary {
  background: transparent;
  color: var(--color-orange-crayola);
  border: 2px solid var(--color-orange-crayola);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active,
.btn-secondary:focus {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
  background-color: var(--color-snow-white);
  height: 100px;
  display: flex;
  align-items: center;
}

.header-top .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  height: 80px;
}

.header-buttons {
  display: flex;
  gap: 1rem;
}

.header-nav {
  background: linear-gradient(to bottom, #1a92d3, var(--color-medium-dark-blue));
  height: 60px;
  display: flex;
  align-items: center;
}

.header-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--color-snow-white);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-shadow: none;
}

/* Footer Styles */
.footer {
  background: linear-gradient(to bottom, #FF8F5E, var(--color-orange-crayola));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 2rem 1rem;
}

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

.footer-menu {
  text-align: center;
  margin-bottom: 1rem;
}

.footer-menu a {
  color: var(--color-snow-white);
  margin: 0 1rem;
  font-size: 14px;
}

.footer-divider {
  height: 1px;
  background-color: rgba(229, 228, 226, 0.5);
  margin: 1rem 0;
}

.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: var(--color-platinum);
  line-height: 1.1rem;
  margin: 0 auto;
}

.footer-copyright p {
  text-align: center;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  height: 720px;
  background: var(--color-medium-dark-blue) url('../images/hero_background_1680x1080.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 64px;
  padding: 2rem;
}

.hero-content {
  max-width: 860px;
  background-color: rgba(255, 250, 250, 0.7);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 0 15px 5px rgba(255, 250, 250, 0.5);
  text-align: center;
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content .subtitle {
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1rem;
  text-align: center;
}

.hero-content p {
  font-size: 16px;
  margin-bottom: 4rem;
}

.hero-content .btn {
  margin-bottom: 2rem;
}

.hero-content .disclaimer {
  font-size: 12px;
  font-style: italic;
  margin-bottom: 0;
  text-align: center;
}

/* Features Grid */
.features-grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.features-grid.grid-3x2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.features-grid.grid-3-col {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-card {
  background: var(--color-snow-white);
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.feature-card .feature-icon {
  font-size: 64px;
  margin: 0 auto 1rem auto;
  display: block;
  text-align: center;
  line-height: 1;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-card p {
  text-align: justify;
}

/* Large Button Style */
.btn-large {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
}

/* About Section Disclaimer */
.about-disclaimer {
  margin-top: 1rem;
  text-align: center;
  font-size: 12px;
  font-style: italic;
  color: var(--color-near-black);
}

/* Process Steps */
.process-step {
  position: relative;
  padding: 2rem 2.5rem;
  background: #FFFFFF;
}

.step-number {
  background: var(--color-orange-crayola);
  color: var(--color-snow-white);
  text-align: center;
  width: 100%;
  height: 40px;
  line-height: 40px;
  border-radius: 12px 12px 0 0;
  font-weight: 700;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.process-step h3 {
  margin-top: 1rem;
}

.process-icon {
  width: 80px;
  height: 80px;
  margin: 1rem auto;
  display: block;
}

/* Benefits Section Icons */
.benefits-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  display: block;
}

/* Trust Section Icons */
.trust-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  display: block;
}

/* Compliance Section */
.compliance-section {
  max-width: 1200px;
  margin: 60px auto;
  border: 3px solid var(--color-canadian-red);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 0;
  overflow: hidden;
  background: #FFFFFF;
}

.compliance-header {
  background: var(--color-canadian-red);
  color: var(--color-snow-white);
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1rem;
  margin: 0;
}

.compliance-content {
  background: #FFFFFF;
  padding: 0;
  margin: 0;
}

.compliance-text {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1rem 1rem 1rem;
  color: var(--color-canadian-red);
  font-size: 16px;
  font-weight: 700;
  text-align: justify;
}

.compliance-logos {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.5rem 1rem 1rem 1rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.compliance-logos img {
  max-height: 56px;
  width: auto;
}

/* Support Section */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 2rem;
  height: 600px;
}

.support-image {
  background: url('../images/support_img_720x720.webp') center/cover no-repeat;
}

.support-form {
  background: var(--color-medium-dark-blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.support-form h3 {
  color: var(--color-snow-white);
  font-size: 32px;
  margin-bottom: 2rem;
}

/* Policy Pages */
.policy-hero {
  background: var(--color-medium-dark-blue);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.policy-hero-content {
  max-width: 800px;
  text-align: center;
  color: var(--color-platinum);
}

.policy-content {
  max-width: 1000px;
  margin: 60px auto;
  background: var(--color-snow-white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.policy-content h2,
.policy-content h3,
.policy-content h4 {
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content h2 {
  color: var(--color-medium-dark-blue);
  font-size: 24px;
  font-weight: 700;
}

.policy-content h3 {
  color: var(--color-medium-dark-blue);
  font-size: 20px;
  font-weight: 600;
}

.policy-content ol,
.policy-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
  max-width: 100%;
  overflow-wrap: break-word;
}

.policy-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.policy-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.policy-content a {
  color: var(--color-medium-dark-blue);
  text-decoration: underline;
  word-break: break-all;
}

.policy-content a:hover {
  color: var(--color-canadian-red);
}

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.policy-content th,
.policy-content td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.policy-content th {
  background-color: var(--color-anti-flash-white);
  font-weight: 700;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.hidden {
  display: none;
}

.modal-container {
  max-width: 480px;
  width: 90%;
  height: 560px;
  background: var(--color-snow-white);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #333;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid #E0E0E0;
}

.modal-tab {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: #343a40;
  position: relative;
}

.modal-tab.active {
  background: var(--color-medium-dark-blue);
  color: var(--color-snow-white);
  font-weight: 700;
}

.modal-body {
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
}

.modal-form {
  width: 100%;
}

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

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

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.modal-footer {
  padding: 0 2.5rem 2.5rem 2.5rem;
}

.modal-submit {
  width: 100%;
  height: 52px;
  background: var(--color-medium-dark-blue);
  color: var(--color-snow-white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.feedback-message {
  height: 60px;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-error {
  background: var(--color-canadian-red);
  color: var(--color-snow-white);
}

.feedback-success {
  background: #00FF00;
  color: var(--color-snow-white);
}

/* Mobile Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-snow-white);
  cursor: pointer;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-medium-dark-blue);
  display: none;
  flex-direction: column;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--color-snow-white);
  padding: 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-buttons {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-buttons,
  .nav-menu {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .header-nav {
    position: relative;
  }
  
  .section-container {
    margin: 30px 1rem;
    padding: 30px;
  }
  
  .hero-section {
    height: auto;
    min-height: 600px;
    padding: 2rem 1rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  .hero-content .subtitle {
    font-size: 20px;
  }
  
  .features-grid.grid-3x2,
  .features-grid.grid-3-col {
    grid-template-columns: 1fr;
  }
  
  .support-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .support-image {
    height: 300px;
    order: 1;
  }
  
  .support-form {
    order: 2;
    height: auto;
  }
  
  .compliance-logos {
    flex-direction: column;
    align-items: center;
  }
  
  .modal-container {
    width: 95%;
    height: auto;
    max-height: 90vh;
  }
}



/* Age Verification Modal Styles */
.age-verification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.97);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.age-verification-modal {
  max-width: 520px;
  width: 100%;
  background-color: #111111;
  opacity: 0.96;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

/* Header Bar */
.age-modal-header {
  background-color: #D80621;
  padding: 1rem 0;
  text-align: center;
}

.age-modal-header h2 {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 1px;
}

/* Modal Content */
.age-modal-content {
  padding: 2rem;
}

/* Two-column layout */
.age-modal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

/* Left Column - Icon */
.age-modal-icon-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.age-icon-circle {
  width: 120px;
  height: 120px;
  border: 4px solid #D80621;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.age-icon-text {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
}

/* Right Column - Text */
.age-modal-text-column {
  padding: 1.5rem;
}

.age-modal-description {
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
  color: #FFFFFF;
  margin: 0;
}

/* Action Buttons */
.age-modal-buttons {
  display: flex;
  gap: 1rem;
  flex-direction: row;
}

.age-btn {
  flex: 1;
  padding: 1rem 2rem;
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.age-btn-yes {
  background-color: #00FF00;
  color: #111111;
}

.age-btn-yes:hover {
  background-color: #00CC00;
  transform: translateY(-2px);
}

.age-btn-no {
  background-color: #D80621;
  color: #FFFFFF;
}

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

/* Access Denied State */
.age-verification-modal.access-denied {
  background-color: #D80621;
}

.age-verification-modal.access-denied .age-modal-header {
  display: none;
}

.age-verification-modal.access-denied .age-modal-content {
  text-align: center;
  padding: 3rem 2rem;
}

.access-denied-title {
  font-size: 24px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.access-denied-subtitle {
  font-size: 14px;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .age-modal-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .age-modal-text-column {
    padding: 0;
  }
  
  .age-modal-buttons {
    flex-direction: column;
  }
  
  .age-btn {
    width: 100%;
  }
  
  .age-verification-modal {
    margin: 1rem;
    max-width: none;
  }
}

/* Focus trap and accessibility */
.age-verification-overlay.active {
  display: flex;
}

.page-locked {
  overflow: hidden;
  pointer-events: none;
}

.page-locked .age-verification-overlay {
  pointer-events: all;
}

