/* NYMG Competition Landing Page Styles
   Brand: newyork.co.uk - Win a Trip to NYC
   Colors: Red #D61F26, Blue #1D36CC, Yellow #F7B731, Green #5AAF42
   Typography: Montserrat (Gotham alternative), Open Sans
*/

/* CSS Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --nymg-red: #d61f26;
  --nymg-red-dark: #b51a20;
  --nymg-blue: #1d36cc;
  --nymg-yellow: #f7b731;
  --nymg-green: #5aaf42;
  --erics-tip-blue: #cdeafa;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --bg-light: #f8f9fa;

  /* Typography */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 80px;
  --section-padding-mobile: 48px;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 20px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 16px;
}

/* Header */
.header {
  padding: 20px 0;
  background: var(--white);
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
}

.logo {
  text-decoration: none;
  display: inline-block;
}

.logo-img {
  height: 28px;
  width: auto;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(214, 31, 38, 0.82) 0%,
    rgba(181, 26, 32, 0.78) 50%,
    rgba(29, 54, 204, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  text-align: center;
}

.hero-text h1 {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.prize-badge {
  display: inline-block;
  background: var(--nymg-yellow);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.125rem;
  padding: 10px 24px;
  border-radius: 50px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(247, 183, 49, 0.4);
}

.hero-subheadline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-tagline {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 12px;
}

/* Signup Form */
.signup-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 0.9375rem;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--white);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--nymg-yellow);
  box-shadow: 0 0 0 4px rgba(247, 183, 49, 0.3);
}

.form-input::placeholder {
  color: #999;
}

.cta-button {
  width: 100%;
  padding: 18px 32px;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--white);
  background: var(--nymg-green);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(90, 175, 66, 0.4);
  text-decoration: none;
}

.cta-button::after {
  content: "\2192";
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.cta-button:hover {
  background: #4a9938;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(90, 175, 66, 0.5);
}

.cta-button:hover::after {
  transform: translateX(4px);
}

.cta-button:active {
  transform: scale(0.98);
}

.cta-secondary {
  background: var(--nymg-green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(90, 175, 66, 0.4);
  width: auto;
  padding: 16px 32px;
}

.cta-secondary:hover {
  background: #4a9938;
  box-shadow: 0 6px 30px rgba(90, 175, 66, 0.5);
}

.form-disclaimer {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 16px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

/* What's Included Section */
.whats-included {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.whats-included h2 {
  text-align: center;
  margin-bottom: 8px;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 48px;
}

.benefits-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  gap: 20px;
  padding: 24px 16px;
  border-bottom: 1px solid #eee;
  border-radius: 8px;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.benefit-item:hover {
  background: var(--bg-light);
  transform: translateX(8px);
}

.benefit-item:last-child {
  border-bottom: none;
}

/* Metro Dots */
.metro-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 4px;
}

.metro-dot.red {
  background: var(--nymg-red);
}

.metro-dot.blue {
  background: var(--nymg-blue);
}

.metro-dot.yellow {
  background: var(--nymg-yellow);
}

.metro-dot.green {
  background: var(--nymg-green);
}

.benefit-content strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.benefit-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Why Enter Section */
.why-enter {
  padding: var(--section-padding) 0;
  background: var(--bg-light);
}

.why-enter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.why-enter-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.why-enter-text h2 {
  margin-bottom: 20px;
}

.why-enter-text p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.why-enter-text .cta-button {
  margin-top: 16px;
}

/* Trust Section */
.trust-section {
  padding: var(--section-padding) 0;
  background: var(--erics-tip-blue);
}

.trust-content {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.eric-photo img {
  width: 140px;
  height: auto;
}

.trust-text {
  flex: 1;
}

.trust-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 12px;
}

.trust-author {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.trust-stats {
  color: var(--text-muted);
  margin: 0;
}

.trust-stats strong {
  color: var(--nymg-red);
}

/* Final CTA Section */
.final-cta {
  padding: var(--section-padding) 0;
  background: var(--text-dark);
  color: var(--white);
  text-align: center;
}

.final-cta h2 {
  color: var(--white);
}

.final-cta > .container > p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.signup-form-centered {
  max-width: 400px;
  margin: 0 auto;
}

.form-row-stacked {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-form-centered .form-disclaimer {
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer {
  padding: 48px 0 32px;
  background: #111;
  color: var(--white);
}

.footer-skyline {
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' fill='%23222'%3E%3Cpath d='M0,60 L0,45 L30,45 L30,30 L50,30 L50,20 L60,20 L60,30 L80,30 L80,35 L100,35 L100,25 L110,25 L110,15 L120,15 L120,5 L130,5 L130,15 L140,15 L140,25 L150,25 L150,35 L180,35 L180,40 L200,40 L200,30 L210,30 L210,20 L220,20 L220,10 L230,10 L230,0 L240,0 L240,10 L250,10 L250,20 L260,20 L260,30 L280,30 L280,25 L300,25 L300,35 L330,35 L330,40 L360,40 L360,45 L400,45 L400,35 L420,35 L420,25 L440,25 L440,20 L450,20 L450,15 L460,15 L460,5 L470,5 L470,0 L480,0 L480,5 L490,5 L490,15 L500,15 L500,25 L520,25 L520,30 L550,30 L550,40 L600,40 L600,35 L650,35 L650,30 L680,30 L680,25 L700,25 L700,20 L710,20 L710,15 L720,15 L720,25 L740,25 L740,35 L780,35 L780,40 L820,40 L820,35 L850,35 L850,30 L880,30 L880,25 L900,25 L900,20 L920,20 L920,15 L930,15 L930,5 L940,5 L940,15 L950,15 L950,25 L970,25 L970,35 L1000,35 L1000,40 L1050,40 L1050,45 L1100,45 L1100,40 L1150,40 L1150,50 L1200,50 L1200,60 Z'/%3E%3C/svg%3E")
    repeat-x bottom;
  background-size: auto 60px;
  margin-bottom: 32px;
}

.footer-content {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.logo-dot {
  color: var(--nymg-blue);
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--white);
}

/* Success Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  padding: 48px;
  border-radius: 16px;
  text-align: center;
  max-width: 420px;
  margin: 24px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

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

.modal-icon {
  width: 72px;
  height: 72px;
  background: var(--nymg-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
}

.modal h3 {
  margin-bottom: 12px;
  color: var(--text-dark);
}

.modal p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-link {
  display: inline-block;
  color: var(--nymg-red);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.modal-link:hover {
  color: var(--nymg-red-dark);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }

  .hero {
    min-height: auto;
    padding: 120px 24px 60px;
  }

  .why-enter-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .why-enter-image {
    order: -1;
  }

  .trust-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 100px 16px 48px;
  }

  .prize-badge {
    font-size: 1rem;
    padding: 8px 20px;
  }

  .benefit-item {
    gap: 16px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }

  .modal-content {
    padding: 32px 24px;
  }
}

/* Loading state for form */
.cta-button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.cta-button.loading::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
