/* Flitz Collective — shared stylesheet for index.html and success.html */

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

html,
body {
  height: 100%;
}

body {
  background-color: #d1f000;
  color: #000000;
  font-family: "Noto Sans Georgian", sans-serif;
  text-transform: uppercase;
  min-height: 100vh;
  padding: 56px 64px;
}

/* ----- Layout (shared by both pages) ----- */

.layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  max-width: 1600px;
  margin: 0 auto;
}

.logo-col {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.logo-col img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
}

.content-col {
  display: flex;
  flex-direction: column;
}

/* ----- Headline ----- */
/*
 * .headline is the animated scramble target on index.html — starts hidden,
 * revealed by the scramble script in form.js.
 * .success-headline is the static, larger heading on success.html.
 */

.headline {
  font-size: 64px;
  line-height: 1.5;
  color: #000000;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  visibility: hidden;
}

.success-headline {
  font-size: 80px;
  line-height: 1.2;
  color: #000000;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ----- Form (index.html only) ----- */

.form-section {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.form-field {
  width: 100%;
}

input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #000000;
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  padding: 8px 0 10px;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

input::placeholder {
  color: #000000;
  opacity: 1;
  text-transform: uppercase;
  font-weight: 500;
}

input:focus {
  border-bottom-color: #000000;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #000000;
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  padding: 8px 0 10px;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23000000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 28px;
}

select option {
  text-transform: uppercase;
  color: #000000;
}

.phone-group {
  width: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #000000;
}

.phone-group select,
.phone-group input {
  border-bottom: none;
}

.phone-group select {
  width: auto;
  min-width: 116px;
  padding-right: 22px;
  flex-shrink: 0;
}

.phone-group input {
  flex: 1;
  min-width: 0;
  padding-left: 12px;
}

.form-error {
  margin-top: -8px;
  min-height: 18px;
  font-size: 13px;
  font-weight: 700;
  color: #b80000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.submit-btn {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 56px;
  padding: 24px;
  background: #000000;
  color: #ffffff;
  border: none;
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.88;
}

.submit-btn:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.btn-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 22px;
}

.btn-loader span {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  animation: btnDotPulse 1.2s infinite ease-in-out both;
}

.btn-loader span:nth-child(2) {
  animation-delay: 0.15s;
}

.btn-loader span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes btnDotPulse {
  0%, 80%, 100% {
    transform: scale(0.5);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.submit-btn.is-loading .btn-label,
.claim-btn.is-loading .btn-label {
  display: none;
}

.submit-btn.is-loading .btn-loader,
.claim-btn.is-loading .btn-loader {
  display: inline-flex;
}

/* ----- Terms checkbox row ----- */

.checkbox-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: #000000;
  text-transform: uppercase;
}

.checkbox-row__input {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox-row__box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #000000;
  background: transparent;
  position: relative;
  transition: background-color 0.15s;
  pointer-events: none;
}

.checkbox-row__input:checked + .checkbox-row__box {
  background-color: #000000;
}

.checkbox-row__input:checked + .checkbox-row__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 7px;
  height: 12px;
  border: solid #d1f000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-row__input:focus-visible + .checkbox-row__box {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.checkbox-row__text {
  flex: 1;
  padding-top: 2px;
}

.terms-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-transform: inherit;
  letter-spacing: inherit;
}

.terms-link:hover {
  opacity: 0.7;
}

/* ----- Terms modal ----- */

.terms-modal[hidden] {
  display: none;
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #d1f000;
  display: flex;
  flex-direction: column;
}

.terms-modal__header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 40px;
  border-bottom: 2px solid #000000;
  background: #d1f000;
}

.terms-modal__title {
  flex: 1;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  color: #000000;
}

.terms-modal__tabs {
  display: flex;
  border: 2px solid #000000;
}

.terms-tab {
  background: transparent;
  border: none;
  padding: 12px 22px;
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: #000000;
  transition: background 0.15s, color 0.15s;
}

.terms-tab + .terms-tab {
  border-left: 2px solid #000000;
}

.terms-tab.is-active {
  background: #000000;
  color: #d1f000;
}

.terms-modal__close {
  background: transparent;
  border: 2px solid #000000;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #000000;
  font-family: inherit;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

.terms-modal__close:hover {
  background: #000000;
  color: #d1f000;
}

.terms-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
}

.terms-panel[hidden] {
  display: none;
}

.terms-panel {
  max-width: 880px;
  margin: 0 auto;
  text-transform: none;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: #000000;
  letter-spacing: 0;
}

.terms-panel h3 {
  margin: 36px 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #000000;
}

.terms-panel h3:first-child {
  margin-top: 0;
}

.terms-panel p {
  margin: 0 0 14px 0;
}

.terms-panel ul {
  margin: 0 0 14px 0;
  padding-left: 22px;
}

.terms-panel li {
  margin-bottom: 8px;
}

.terms-panel strong {
  font-weight: 700;
}

/* ----- Success page extras ----- */

.subtext {
  margin-top: 56px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  color: #000000;
  text-transform: uppercase;
  max-width: 720px;
  letter-spacing: 0.02em;
}

.back-link {
  margin-top: 64px;
  display: inline-block;
  align-self: flex-start;
  padding: 22px 48px;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.88;
}

/* ----- Event card (promo claim on success page) ----- */

.event-card {
  margin-top: 56px;
  padding: 40px;
  border: 2px solid #000000;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 720px;
}

.event-card__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
  opacity: 0.6;
  margin: 0 0 16px 0;
}

.event-card__title {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #000000;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.event-card__venue,
.event-card__info {
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #000000;
  margin: 0 0 32px 0;
}

.claim-btn {
  width: 100%;
  padding: 24px;
  background: #000000;
  color: #ffffff;
  border: none;
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.claim-btn:hover {
  opacity: 0.88;
}

.claim-btn:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.claim-result {
  margin: 16px 0 0 0;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.5;
  color: #000000;
  letter-spacing: 0.02em;
  min-height: 22px;
}

.claim-result.is-error {
  color: #b00020;
}

.claim-result.is-success {
  font-weight: 600;
}

/* ----- Claim confirmation (after access code email sent) ----- */

.event-card--confirmed {
  border-color: #1e7e34;
  background: rgba(30, 126, 52, 0.08);
  padding: 32px 36px;
}

.claim-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.claim-confirmation__check {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e7e34;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.claim-confirmation__text {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #000000;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.claim-confirmation__email {
  text-transform: none;
  font-weight: 700;
  word-break: break-word;
  letter-spacing: 0;
}

/* ----- Responsive ----- */

@media (max-width: 1100px) {
  .success-headline {
    font-size: 72px;
  }
}

@media (max-width: 900px) {
  body {
    padding: 32px 28px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .logo-col img {
    max-width: 220px;
  }

  .headline,
  .success-headline {
    font-size: 48px;
  }

  .form-section {
    margin-top: 40px;
    gap: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .submit-btn {
    padding: 20px;
    font-size: 16px;
    margin-bottom: max(40px, env(safe-area-inset-bottom));
  }

  .subtext {
    font-size: 16px;
    margin-top: 32px;
  }

  .back-link {
    margin-top: 40px;
    padding: 18px 36px;
    font-size: 16px;
  }

  .event-card {
    margin-top: 40px;
    padding: 28px;
  }

  .event-card__title {
    font-size: 28px;
  }

  .event-card__venue,
  .event-card__info {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .event-card--confirmed {
    padding: 24px 22px;
  }

  .claim-confirmation {
    gap: 14px;
  }

  .claim-confirmation__check {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .claim-confirmation__text {
    font-size: 14px;
  }

  .claim-btn {
    padding: 20px;
    font-size: 16px;
  }

  .checkbox-row {
    font-size: 13px;
    gap: 12px;
  }

  .terms-modal__header {
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 14px;
  }

  .terms-modal__title {
    flex: 1 1 100%;
    font-size: 16px;
    order: 1;
    padding-right: 56px;
  }

  .terms-modal__close {
    position: absolute;
    top: 14px;
    right: 20px;
    order: 2;
    width: 40px;
    height: 40px;
  }

  .terms-modal__tabs {
    flex: 1 1 100%;
    order: 3;
  }

  .terms-tab {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
  }

  .terms-modal__body {
    padding: 24px 20px 40px;
  }

  .terms-panel {
    font-size: 15px;
    line-height: 1.6;
  }

  .terms-panel h3 {
    font-size: 16px;
    margin-top: 28px;
  }
}

@media (max-width: 480px) {
  .headline,
  .success-headline {
    font-size: 38px;
  }
}
