@font-face {
  font-family: "AvantGardePro";
  src: url("fonts/ITCAvanteGardeGothicProbookfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AvantGardePro";
  src: url("fonts/ITCAvantGardeGothicProMediumfont.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AvantGardePro";
  src: url("fonts/ITCAvanteGardeGothicProBoldfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --age-gate-width: 480px;
  --content-width: 660px;
  --blue-main: #023E7B;
  --blue-dark: #023E7B;
  --mobile-gutter: 24px;
  --form-max-width: 380px;
  --font-base: 16px;
  --font-label: 1rem;
  --font-input: 0.95rem;
  --font-h1: 1.375rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "AvantGardePro", sans-serif;
  font-size: var(--font-base);
  background: #fff;
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100%;
}

.side-bar {
  position: fixed;
  top: 0;
  height: 100vh;
  background: #000;
  pointer-events: none;
  z-index: 9999;
}

.left-bar  { left: 0;  width: calc((100vw - var(--content-width)) / 2); }
.right-bar { right: 0; width: calc((100vw - var(--content-width)) / 2); }

.age-gate .left-bar,
.age-gate .right-bar {
  width: calc((100vw - var(--age-gate-width)) / 2);
}

body:has(.confirmation-wrapper) .side-bar {
  width: calc((100vw - var(--age-gate-width)) / 2);
}

@media (max-width: 767px) {
  .side-bar {
    display: none;
  }
}

.age-gate {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
  max-width: 100%;
}

.age-gate-inner {
  width: 100%;
  max-width: var(--age-gate-width);
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
}

@media (min-width: 600px) {
  .age-gate-inner {
    overflow: hidden;
    min-height: auto;
  }
}

.age-hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  box-sizing: border-box;
}

.age-hero-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.age-hero-topbar-18 {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.age-hero-topbar-text {
  font-size: 0.5rem;
  color: #fff;
  line-height: 1.2;
}

.age-hero-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.age-hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.age-hero img:not(.age-hero-badge):not(.age-hero-logo) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 30%;
}

.age-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.age-hero-badge {
  height: 48px;
  width: auto;
}

.age-hero-copy {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  max-width: 260px;
  text-align: center;
  color: #fff;
  z-index: 3;
}

.age-hero-logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 16px;
}

.age-hero-copy h1 {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 2px;
  margin: 0;
}

@media (max-width: 599px) {
  .age-hero {
    height: 340px;
  }

  .age-hero-copy {
    right: 5%;
    max-width: 220px;
  }

  .age-hero-copy h1 {
    font-size: 24px;
  }
}

.age-form {
  max-width: 360px;
  margin: 32px auto 0;
  padding: 0 20px 20px;
}

@media (min-width: 600px) {
  .age-gate {
    min-height: 100vh;
    align-items: stretch;
  }

  .age-gate-inner {
    justify-content: flex-start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .agegate-footer {
    margin-top: auto;
  }

  .age-form {
    margin-top: 48px;
  }
}

.age-input {
  margin-bottom: 12px;
}


.age-form .age-input + .age-input {
  margin-top: -4px; 
}

.age-form > .age-input > label:not(.checkbox-label) {
  display: block;
  color: #164292;
  margin-bottom: 6px;
  font-size: 1.125rem;
  font-weight: 700;
}

.age-form input:not([type="checkbox"]),
.age-form select {
  width: 100%;
  height: 40px;
  padding: 8px 10px;
  font-size: 1rem;
  border: 2px solid var(--blue-main);
  background: transparent;
  border-radius: 0;
}

.dob-row {
  display: flex;
  gap: 10px;
}

.age-form .dob-row input {
  flex: 1;
  text-align: center;
  background-color: #023E7B !important;
  border: 2px solid #023E7B !important;
  color: #fff !important;
}

.age-form .dob-row input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.age-form .dob-row input:focus {
  outline: none;
  border-color: #fff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.age-form .custom-select-trigger {
  height: 40px;
  border-color: var(--blue-main);
  color: var(--blue-main);
}

.age-form .custom-select-value {
  color: var(--blue-main);
}

.age-form .custom-select-menu {
  border-color: var(--blue-main);
}

.age-form .custom-select-option {
  color: var(--blue-main);
}

.age-input.age-checkbox {
  margin-top: -4px;   
  margin-bottom: 6px;
}


.age-input.age-checkbox .checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}

.age-input.age-checkbox .checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border: 2px solid var(--blue-main);
  background: transparent;
  display: grid;
  place-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.age-input.age-checkbox .checkbox-label input[type="checkbox"]::after {
  content: "";
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.age-input.age-checkbox .checkbox-label input[type="checkbox"]:checked {
  background: var(--blue-main);
}

.age-input.age-checkbox .checkbox-label input[type="checkbox"]:checked::after {
  opacity: 1;
}

.age-input.age-checkbox .checkbox-text {
  display: block;
  flex: 1;
}

.age-error {
  margin-top: 4px;
  font-size: 14px;
  color: #c00;
  min-height: 16px;
}

.age-input.error input,
.age-input.error select {
  border-color: #c00;
}

.age-input.error .custom-select-trigger {
  border-color: #c00;
}

.age-input.age-checkbox {
  margin-top: -12px;  
  margin-bottom: 6px; 
}

#enterBtn {
  width: 100%;
  padding: 14px;
  margin-top: 8px; 
  margin-bottom: 20px;
  background: var(--blue-dark);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  font-family: "AvantGardePro", sans-serif;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.agegate-footer {
  position: relative;
  width: 100%;
  color: #fff;
  overflow: hidden;
  padding: 48px var(--mobile-gutter) 60px;
  background: url("images/footer.png") center 25% / cover no-repeat;
}

.agegate-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 41, 137, 0.40);
  z-index: 0;
}

.agegate-footer > * {
  position: relative;
  z-index: 1;
}

.agegate-footer-links {
  text-align: center;
  font-size: 0.875rem;
  max-width: 660px;
  color: #fff;
  line-height: 1.3;
  margin: 0 auto 48px;
  padding: 0;
}

.agegate-footer-links strong {
  display: block;
  margin-bottom: 4px;
}

.agegate-footer-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.agegate-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  gap: 12px;
  max-width: 660px;
  margin: 0 auto;
}

.age-legal-text {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  margin: 0 auto;
  opacity: 0.9;
  width: 320px;
  max-width: 100%;
}

#mainSite {
  display: none;
}

#mainSite,
.site-zoom {
  overflow-x: hidden;
  max-width: 100%;
}

.hero-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 530px;
  object-fit: cover;
  object-position: center;
}

.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  box-sizing: border-box;
}

.hero-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-topbar-18 {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.hero-topbar-text {
  font-size: 0.5rem;
  color: #fff;
  line-height: 1.2;
}

.hero-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-topbar-ferrari {
  height: 48px;
  width: auto;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  box-sizing: border-box;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px 0;
}

.promo-logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.promo-divider {
  width: 60px;
  height: 2px;
  background-color: #fff;
  margin: 0 auto 16px;
}

.promo-text {
  font-family: "AvantGardePro", sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

@media (max-width: 599px) {
  .hero-img { min-height: 300px; }
  .hero-content h1 { font-size: 1.7rem; }
  .promo-text { font-size: 0.85rem; }
}

@media (min-width: 600px) and (max-width: 899px) {

  .hero-wrapper {
    height: 580px; 
  }

  .hero-img {
    width: 100%;
    height: 100%; 
    min-height: 0; 
    object-fit: cover;
    object-position: center 30%;
  }

  .hero-overlay {
    height: 100%;
  }

}

.page-wrapper {
  width: 100%;
  max-width: var(--form-max-width);
  margin: 0 auto;
  padding: 0 12px;
}

#form {
  width: 100%;
  margin: 4px auto;
  font-size: var(--font-base);
  padding-top: 24px;
  padding-bottom: 16px;
}

#form h1 {
  text-align: center;
  color: var(--blue-main);
  margin-bottom: 24px;
  font-weight: 700;
  font-size: var(--font-h1);
}

.input-control {
  color: var(--blue-main);
  margin-bottom: 0;
}

.input-control label {
  display: block;
  margin-bottom: 4px;
  font-size: var(--font-label);
  font-weight: 700;
}

.input-control input {
  width: 100%;
  height: 34px;
  padding: 6px 8px;
  border: 2px solid var(--blue-main);
  background: var(--blue-dark);
  color: #fff;
  font-size: var(--font-input);
}

.input-control input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input-control .error {
  margin-top: 3px;
  padding-bottom: 6px;
  font-size: 0.875rem;
  color: #c00;
  min-height: 20px;
  height: 20px;
  line-height: 1;
  display: block;
}

.input-control.error input {
  border-color: #c00;
}

.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 10px;
  border: 2px solid var(--blue-main);
  background: transparent;
  cursor: pointer;
  font-size: var(--font-input);
  font-family: "AvantGardePro", sans-serif;
  color: var(--blue-main);
}

.custom-select:focus .custom-select-trigger,
.custom-select.open .custom-select-trigger {
  outline: 2px solid rgba(0, 41, 137, 0.25);
  outline-offset: 1px;
}

.custom-select-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-value {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0.45;
}

.custom-select-value.selected {
  opacity: 1;
}

.custom-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid var(--blue-main);
  border-top: none;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 41, 137, 0.12);
}

.custom-select.open .custom-select-menu {
  display: block;
}

.custom-select-option {
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: "AvantGardePro", sans-serif;
  color: var(--blue-main);
  cursor: pointer;
  line-height: 1.35;
  transition: background 0.1s;
}

.custom-select-option:hover {
  background: rgba(0, 41, 137, 0.07);
}

.custom-select-option.active {
  background: rgba(0, 41, 137, 0.12);
  font-weight: 600;
}

.input-control.error .custom-select-trigger {
  border-color: #c00;
}

.dob-wrapper {
  display: flex;
  gap: 12px;
}

.dob-wrapper input {
  background-color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
  color: #fff;
  text-align: center;
}

.dob-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.dob-wrapper input:focus {
  outline: none;
  border-color: #fff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.dob-wrapper input:nth-child(1),
.dob-wrapper input:nth-child(2) {
  width: 60px;
}

.dob-wrapper input:nth-child(3) {
  width: 90px;
}

#skill {
  width: 120px;
  text-align: center;
}

.checkbox-control {
  margin-top: 4px;
  margin-bottom: 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.checkbox-text {
  color: var(--blue-main);
  font-size: var(--font-input);
  line-height: 1.45;
  max-width: 360px;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--blue-main);
  background: transparent;
  display: grid;
  place-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]::after {
  content: "";
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--blue-main);
}

.checkbox-label input[type="checkbox"]:checked::after {
  opacity: 1;
}

.checkbox-control .error {
  margin-top: 0;
  margin-left: 38px;
  padding-bottom: 6px;
  font-size: 0.875rem;
  color: #c00;
  min-height: 20px;
  height: 20px;
  line-height: 1;
  display: block;
}

.main-footer-links {
  background: #023E7B;
  margin-left: calc(-1 * var(--mobile-gutter));
  margin-right: calc(-1 * var(--mobile-gutter));
  padding-top: 24px;
  padding-bottom: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0;
}

.main-footer-links strong,
.main-footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.main-footer-links strong {
  display: block;
  margin-bottom: 4px;
}

.main-footer-divider {
  display: none; 
}

.main-footer-legal {
  position: relative;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  opacity: 0.9;
  padding: 50px 20px 60px;
  background: url("images/footer.png") center 25% / cover no-repeat;
}

.main-footer-legal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 41, 137, 0.40);
  z-index: 0;
}

.main-footer-legal-text {
  position: relative;
  z-index: 1;
}
.main-footer-legal-inner {
  position: relative;
  z-index: 1;
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
}

#form button[type="submit"] {
  width: 100%;
  padding: 15px;
  margin-top: 16px;
  background: var(--blue-main);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-family: "AvantGardePro", sans-serif;
  cursor: pointer;
  letter-spacing: 0.05em;
}

css.form-contest-rules {
  color: var(--blue-main);
  font-size: var(--font-input);
  text-align: left; 
  margin-top: 28px;
  margin-bottom: 20px;
  padding-left: 38px; 
}

.form-contest-rules a {
  color: var(--blue-main);
  text-decoration: none;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.submit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  z-index: 99999;
}

.submit-overlay.show { display: flex; }

.submit-loading {
  display: none;
  justify-content: center;
  align-items: center;
}

.submit-loading.show { display: flex; }

.spinner {
  width: 64px;
  height: 64px;
  border: 5px solid rgba(22, 66, 146, 0.2);
  border-top-color: #164292;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.submit-success {
  display: none;
  background: #fff;
  padding: 32px 36px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 320px;
  width: 90%;
  font-family: "AvantGardePro", sans-serif;
}

.submit-success.show { display: block; }

.success-text {
  font-size: 1.1rem;
  color: var(--blue-main);
  font-weight: 500;
  margin-bottom: 24px;
}

#closeSubmitSuccess {
  padding: 10px 24px;
  background: var(--blue-main);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

#closeSubmitSuccess:hover {
  background: #0f2a6f;
}

.confirmation-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: var(--age-gate-width);
  margin: 0 auto;
}

.confirmation-page {
  flex: 1;
  max-width: var(--age-gate-width);
  margin: 0 auto;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 25px;
}

.confirmation-logo {
  width: 220px;
  margin: 45px auto 0;
}

.confirmation-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  flex: 1;
}

.confirmation-content h1 {
  font-size: 36px;
  color: var(--blue-main);
  margin-top: 0;
  margin-bottom: 16px;
}

.confirmation-text {
  color: var(--blue-main);
  font-size: 24px;
  margin-bottom: 2px;
}

.confirmation-partners {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.confirmation-partners img { height: 40px; }
.confirmation-partners img:nth-child(1) { height: 28px; }
.confirmation-partners img:nth-child(3) { height: 58px; }

.partner-divider {
  width: 1px;
  height: 40px;
  background: var(--blue-main);
}

.partner-caption {
  color: var(--blue-main);
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}

.agegate-footer--confirmation {
  padding: 40px var(--mobile-gutter) 28px;
}

.agegate-footer--confirmation .agegate-footer-links {
  margin: -12px auto 28px;
}

.agegate-footer--confirmation .agegate-footer-bottom {
  margin: 0 auto;
}

@media (min-width: 600px) {
  .confirmation-wrapper {
    overflow: hidden;
    justify-content: space-between;
  }

  .confirmation-page {
    overflow: visible;
  }

  .confirmation-content,
  .confirmation-partners,
  .partner-caption {
    max-width: var(--age-gate-width);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .confirmation-page {
    padding-bottom: clamp(16px, 3vh, 25px);
  }

  .confirmation-content {
    padding-top: clamp(80px, 15vh, 120px);
  }

  .confirmation-content h1 {
    font-size: clamp(30px, 8vw, 36px);
    margin-bottom: clamp(8px, 2vw, 16px);
  }

  .confirmation-text {
    font-size: clamp(18px, 5vw, 24px);
  }

  .confirmation-partners img { height: clamp(28px, 7vw, 40px); }
  .confirmation-partners img:nth-child(1) { height: clamp(22px, 5.5vw, 28px); }
  .confirmation-partners img:nth-child(3) { height: clamp(44px, 12vw, 58px); }

  .partner-caption {
    font-size: clamp(12px, 3.5vw, 16px);
    margin-top: 24px;
  }
}

.conf-footer-blue {
  background: #023E7B;
}

@media (min-width: 1200px) {
  :root {
    --content-width: 860px;
    --form-max-width: 480px;
    --font-base: 17px;
    --font-h1: 1.5rem;
  }

  .page-wrapper { padding: 0 20px; }
  #form h1 { margin-bottom: 28px; }
}

.hero-img-tablet,
.hero-img-desktop {
  display: none;
}

@media (min-width: 600px) and (max-width: 899px) {
  .hero-img-mobile,
  .hero-img-desktop {
    display: none;
  }

  .hero-img-tablet {
    display: block;
  }

  .hero-wrapper {
    height: 920px;
  }

  .hero-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center 30%;
  }

  .hero-overlay {
    height: 100%;
  }
}

@media (min-width: 900px) {
  .hero-img-mobile,
  .hero-img-tablet {
    display: none;
  }

  .hero-img-desktop {
    display: block;
    height: auto;
    object-fit: contain;
    min-height: 0;
  }

  .hero-wrapper {
    height: auto;
  }

  .hero-topbar {
    padding: 12px 32px; 

  .hero-topbar-ferrari {
    height: 72px; 
  }
}



@media (max-width: 599px) {
  :root {
    --mobile-gutter: 20px;
    --form-max-width: calc(100% - 32px);
    --font-base: 15px;
    --font-label: 0.9375rem;
    --font-input: 0.9rem;
    --font-h1: 1.2rem;
  }

  .page-wrapper { padding: 0 16px; }

  #form {
    padding-top: 18px;
    padding-bottom: 12px;
  }

  #form h1 { margin-bottom: 18px; }

  .input-control input,
  .input-control select,
  .custom-select-trigger {
    height: 40px;
  }

  .dob-wrapper {
    flex-direction: row;
    gap: 8px;
  }

  .dob-wrapper input {
    flex: 0 0 auto;
    height: 40px;
  }

  .dob-wrapper input:nth-child(1),
  .dob-wrapper input:nth-child(2) { width: 54px; }
  .dob-wrapper input:nth-child(3) { width: 78px; }

  #skill {
    width: 100px;
    height: 40px;
  }

  .checkbox-control {
    margin-top: 0;
    margin-bottom: 6px;
  }

  .checkbox-label { gap: 12px; }

  .checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 1px;
  }

  .checkbox-control .error { margin-left: 38px; }

  #form button[type="submit"] {
    padding: 18px;
    margin-top: 20px;
  }

  .form-contest-rules {
    margin-top: 24px;
    margin-bottom: 16px;
  }

  .submit-success {
    padding: 24px 20px;
    max-width: 90%;
  }

  .success-text { font-size: 1rem; }
  #closeSubmitSuccess { width: 100%; }

  .hero-wrapper {
    aspect-ratio: 9 / 14;
    height: auto;
  }

  .hero-img-mobile {
    min-height: 0;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
  }
}

@media (min-width: 400px) and (max-width: 599px) {
  .hero-wrapper {
    aspect-ratio: 9 / 14;
  }
}

@media (max-width: 379px) {
  :root {
    --font-base: 14px;
    --font-h1: 1.1rem;
  }

  .page-wrapper { padding: 0 20px; }

  .dob-wrapper input:nth-child(1),
  .dob-wrapper input:nth-child(2) { width: 48px; }
  .dob-wrapper input:nth-child(3) { width: 70px; }

  #skill { width: 90px; }
}