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

body {
  font-family: "NYCFC-Typeface";
  background-color: #fff;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body > div:first-of-type {
  padding: 15px;
  background-color: #9FD2FF;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.site-banner p { margin: 0.15rem 0; }
.site-banner .lead { margin-bottom: 0.25rem; }

.signup-container {
  background-color: #fff;
  padding: 0.5rem 2.5rem 1.25rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

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

label {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: #000;
  font-weight: bold;
}

input,
select {
  font-family: "NYCFC-Typeface";
  padding: 0.6rem;
  border: 1px solid #ccc;
  width: device-width;
  height: auto;
  background-color: #fff;
  border-radius: 6px;
  font-size: 1.04rem;
  transition: border-color 0.2s;
}

select {
  appearance:none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

::placeholder {
  color: #757575;   /* your preferred gray */
  opacity: 1;    /* ensures it's not faded */
}

select.placeholder,
input[type="date"].placeholder, input[type="tel"].placeholder {
  color: #757575 !important;
  opacity: 1;
}

input[type="date"] {
  font-size: .5rem;
  text-align: left;
  width: device-width;
  max-width: inherit;
  box-sizing: border-box;
  display: block;
  color: #333;
  appearance: inherit;
  -webkit-appearance: none;
  -webkit-min-logical-height: 5.3vh;
  -moz-appearance: none;
  min-height: 2.5em;
}

/* Header bar */
.flatpickr-calendar .flatpickr-months {
  background: #9FD2FF;;
  color: #fff;
}

/* MONTH + YEAR selects (closed state) */
.flatpickr-calendar .flatpickr-months .flatpickr-monthDropdown-months,
.flatpickr-calendar .flatpickr-months .flatpickr-year-dropdown {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  background-color: #fff !important;
  color: #393939 !important;
  border: none !important;
  border-radius: 4px;
  padding: 2px 24px 2px 8px;

  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 12px;

  /* Match font-sizing to parent class */
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;

  /* white chevron ▼ as background */
  background-image: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'>\<path d='M1 1l4 4 4-4' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/>\</svg>");
}

/* Days of the week row color */
.flatpickr-calendar .flatpickr-weekdays {
  background-color: #9FD2FF; /* NYC blue */
  color: #393939 !important;
}

.flatpickr-calendar .flatpickr-weekday {
  color: #393939 !important;
}


/* Options in the dropdown (works in Chrome/Firefox; Safari may ignore) */
.flatpickr-calendar .flatpickr-months .flatpickr-monthDropdown-months option,
.flatpickr-calendar .flatpickr-months .flatpickr-year-dropdown option {
  background-color: #fff !important;
  color: #393939 !important;
}

/* Hide legacy caret (old IE/Edge) */
.flatpickr-calendar .flatpickr-months .flatpickr-monthDropdown-months::-ms-expand,
.flatpickr-calendar .flatpickr-months .flatpickr-year-dropdown::-ms-expand {
  display: none;
}

/* Prev/Next arrows (SVG) — bold & white */
.flatpickr-calendar .flatpickr-prev-month svg,
.flatpickr-calendar .flatpickr-next-month svg {
  stroke: #fff !important;
  stroke-width: .12rem !important;
  fill: none !important;
  opacity: 1;
}

.flatpickr-calendar .flatpickr-months .flatpickr-monthDropdown-months:hover,
.flatpickr-calendar .flatpickr-months .flatpickr-year-dropdown:hover {
  background-color: #000229 !important;
  stroke: #fff !important;
}

/* Scrollable year dropdown */
.flatpickr-calendar .flatpickr-year-dropdown {
  max-height: 5em;    /* about 10 options tall */
  overflow-y: auto;    /* enable vertical scrolling */
}


/* Month + Year dropdowns — locked state */
.flatpickr-calendar .flatpickr-months .flatpickr-monthDropdown-months,
.flatpickr-calendar .flatpickr-months .flatpickr-year-dropdown,
.flatpickr-calendar .flatpickr-months .flatpickr-monthDropdown-months:hover,
.flatpickr-calendar .flatpickr-months .flatpickr-year-dropdown:hover,
.flatpickr-calendar .flatpickr-months .flatpickr-monthDropdown-months:focus,
.flatpickr-calendar .flatpickr-months .flatpickr-year-dropdown:focus,
.flatpickr-calendar .flatpickr-months .flatpickr-monthDropdown-months:active,
.flatpickr-calendar .flatpickr-months .flatpickr-year-dropdown:active,
.flatpickr-calendar .flatpickr-months .flatpickr-monthDropdown-months:focus-visible,
.flatpickr-calendar .flatpickr-months .flatpickr-year-dropdown:focus-visible {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  background-color: #9FD2FF !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px;
  padding: 2px 24px 2px 8px !important;

  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 12px 12px !important;

  /* white chevron ▼ */
  background-image: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'>\<path d='M1 1l4 4 4-4' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/>\</svg>") !important;

  outline: none !important;
  box-shadow: none !important; /* removes theme hover/focus glow */
}

#dob {
  background-image: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\<rect x='3' y='5' width='18' height='16' rx='2' ry='2' fill='none' stroke='%23333' stroke-width='2'/>\<line x1='8' y1='3' x2='8' y2='7' stroke='%23333' stroke-width='2'/>\<line x1='16' y1='3' x2='16' y2='7' stroke='%23333' stroke-width='2'/>\<line x1='3' y1='11' x2='21' y2='11' stroke='%23333' stroke-width='2'/>\</svg>");
  background-repeat: no-repeat;
  background-position: right;
  background-size: 1.25rem 1.25rem;
  padding-right: 1rem;
  background-position: right 1rem center;
}

input[type="tel"]{
  width: 100%;
}

.iti__country-name{
  font-size: 1.04rem;
}

input:focus,
select:focus {
  border-color: #9fd2ff;
  outline: none;
}

.terms-container {
  display: flex;
  align-items: normal;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;     
}

.terms-container > :nth-child(1),
.terms-container > :nth-child(3) {
  flex: 0 0 100%;
  margin-top: .75rem;
  margin-bottom: .75rem;
}

.terms-container input[type="checkbox"] {
  accent-color: #9fd2ff;
  margin-top: 0.7rem;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  flex: 0 0 auto;
  align-self: flex-start;
}

.required-asterisk {
  color: red;
  margin-left: 2px;
}

.terms-description {
  font-size: 0.65rem;
  color: #555;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.terms-description a {
  color: #000229;
  text-decoration: underline;
}

.terms-description a:hover {
  text-decoration: none;
}

.terms-container .terms-description {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.submit-button {
  font-family: "NYCFC-Typeface";
  text-align: center;
  margin-top: 1.5rem;
  padding: 0.75rem;
  font-size: 1.1rem;
  background-color: #9fd2ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #000229;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  width: var(--modal-ideal-width, 400px);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  transition: transform 0.3s ease;
}

.modal.hidden .modal-content {
  transform: scale(0.95);
}

.thank-you-modal-content,
.error-modal-content {
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  gap: 1rem;
  max-width: 400px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Error alert box for consent message */
.checkbox-error {
  font-size: 0.875rem;
  text-align: center;
  vertical-align: auto;
  display: none;                /* hidden by default; JS toggles .visible */
  color: #b42318;               /* red text */
  background: #ffe7ed;          /* pink-ish background */
  border: .75px solid #f9b3c0;    /* soft pink border */
  padding: 0.5rem 0.5rem;
  border-radius: 10px;
  margin-top: 0.5rem;
  margin-bottom: -0.5;
  line-height: 1.0;
}

/* show when needed */
.checkbox-error.visible {
  display: block;
}

.checkbox-error.visible + .submit-button {
  margin-top: 0.75rem; /* half of your current 1.5rem */
}

/* optional: a subtle warning icon */
.checkbox-error::before {
  content: "⚠️";
  margin-right: 0.2rem;
  font-size: 1.2em;
  vertical-align: 0.1em;
}

.thank-you-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-icons a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
}

.social-icons i {
  color: #000229;
  transition: color 0.2s ease;
  font-size: 1.5rem; /* Adjust size as needed */
}

.social-icons a:hover i {
  color: #9fd2ff;
}

.inline-logo {
  height: 2rem;
  width: auto;
  margin-left: .35rem;
  display: inline-block;
  position: relative;
  height: 4.5rem;
}


/* Responsive tweaks */
@media (max-width: 600px) {
  .signup-container {
    padding: 1.5rem;
  }
  .modal-content {
    width: 90%;
    height: auto;
    max-height: 90vh;
    margin: 1rem 0;
    overflow-y: auto;
  }
}

/* Custom typefaces */
@font-face {
  font-family: "NYCFC-Typeface";
  src: url("./assets/nycfc_typefaces/NYCFCLocal-Regular.woff2") format("woff2"),
       url("./assets/nycfc_typefaces/NYCFCLocal-Regular.woff") format("woff"),
       url("./assets/nycfc_typefaces/NYCFCLocal-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "NYCFC-Typeface";
  src: url("./assets/nycfc_typefaces/NYCFCLocal-Bold.woff2") format("woff2"),
       url("./assets/nycfc_typefaces/NYCFCLocal-Bold.woff") format("woff"),
       url("./assets/nycfc_typefaces/NYCFCLocal-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NYCFC-Typeface-Express-Bold';
  src:  url("./assets/nycfc_typefaces/NYCFCExpress-Bold.woff2") format("woff2"),
        url("./assets/nycfc_typefaces/NYCFCExpress-Bold.woff") format("woff"),
        url('./assets/nycfc_typefaces/NYCFCExpress-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "NYCFC-Typeface";
  src: url("./assets/nycfc_typefaces/NYCFCLocal-Italic.woff2") format("woff2"),
       url("./assets/nycfc_typefaces/NYCFCLocal-Italic.woff") format("woff"),
       url("./assets/nycfc_typefaces/NYCFCLocal-Italic.otf") format("opentype");
  font-style: italic;
  font-weight: normal;
  font-display: swap;
}
