@font-face {
  font-family: "Abolition";
  src: url("assets/abolition-round-oblique.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/Inter-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-beige-200: #efedea;

  --color-blue-600: #008299;

  --color-green-400: #008446;
  --color-green-600: #006830;

  --color-gray-900: #323232;
  --color-gray-300: #e7e7e7;
}

html {
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", sans-serif;
}

body:has([popover]:popover-open) {
  overflow: hidden;
}

section {
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  section {
    padding: 5rem 1rem;
  }
}

.container {
  max-width: 865px;
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Abolition", sans-serif;
  letter-spacing: 1px;
  line-height: 1.1;
  text-wrap: pretty;
}

h1 {
  font-size: 3rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 90px;
  }
}

h2 {
  font-size: 36px;
}

p {
  font-size: 1rem;
  line-height: 1.625;
  color: #323232;
}

@media (min-width: 768px) {
  p {
    font-size: 1.25rem;
  }
}

button,
a.button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 9999px;
  background-color: var(--color-green-400);
  color: white;
  font-weight: 500;
  transition: background-color 0.15s ease-in-out;
  cursor: pointer;
  border: 1px solid var(--color-green-400);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

button:hover,
a.button:hover {
  background-color: var(--color-green-600);
  border: 1px solid var(--color-green-600);
}

button:focus-visible,
a.button:focus-visible {
  outline: 2px solid var(--color-green-400);
  outline-offset: 2px;
}

.button-outline-white {
  padding: 1rem 2rem;
  border-radius: 9999px;
  background-color: transparent;
  color: white;
  border: 1px solid white;
  font-weight: 500;
  transition: background-color 0.15s ease-in-out;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.button-outline-white:hover {
  background-color: white;
  color: black;
}

.button-outline-white:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.button-outline-white:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.button-outline-green {
  padding: 1rem 2rem;
  border-radius: 9999px;
  background-color: transparent;
  color: var(--color-green-400);
  border: 1px solid var(--color-green-400);
  font-weight: 500;
  transition: background-color 0.15s ease-in-out;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.button-outline-green:hover {
  background-color: var(--color-green-400);
  color: white;
}

.button-outline-green:focus-visible {
  outline: 2px solid var(--color-green-400);
  outline-offset: 2px;
}

.button-outline-green:focus-visible {
  outline: 2px solid var(--color-green-400);
  outline-offset: 2px;
}

.small {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

@media (min-width: 768px) {
  h2 {
    font-size: 64px;
  }
}

h3 {
  font-size: 24px;
}

@media (min-width: 768px) {
  h3 {
    font-size: 32px;
  }
}

/* Popover Styles */
#swish-popover,
#confirmation-popover {
  max-width: 28rem;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

#swish-popover::backdrop,
#confirmation-popover::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

#swish-popover .popover-content,
#confirmation-popover .popover-content {
  position: relative;
  background-color: white;
  border-radius: 0.75rem;
  padding: 2rem;
}

#swish-popover .close-button,
#confirmation-popover .close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #9ca3af;
  transition: color 0.15s ease-in-out;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

#swish-popover .close-button:hover,
#confirmation-popover .close-button:hover {
  color: #4b5563;
  background: none;
  box-shadow: none;
}

#swish-popover .close-button svg,
#confirmation-popover .close-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

#swish-popover .popover-inner,
#confirmation-popover .popover-inner {
  text-align: center;
}

#swish-popover h3,
#confirmation-popover h3 {
  margin-bottom: 1rem;
  color: #111827;
}

#swish-popover .image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#swish-popover .image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Registration Form Styles */
.registration-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .registration-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.registration-text {
  text-align: center;
}

@media (min-width: 768px) {
  .registration-text {
    text-align: left;
    padding-top: 2rem;
  }
}

.form-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .form-container {
    padding: 2.5rem;
  }
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.registration-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .registration-form .form-row {
    grid-template-columns: 1fr;
  }
}

.registration-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.registration-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #e5e7eb;
}

.registration-form input[type="text"],
.registration-form input[type="email"] {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: white;
  color: #323232;
}

.registration-form input[type="text"]:focus,
.registration-form input[type="email"]:focus {
  border-color: var(--color-green-400);
  outline: 2px solid var(--color-green-400);
  outline-offset: -4px;
}

.registration-form input::placeholder {
  color: #9ca3af;
}

/* Radio Button Styles */
.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .radio-group {
    flex-direction: column;
  }
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: normal;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #374151;
  border-radius: 0.5rem;
  padding: 0.875rem 1.25rem;
  flex: 1;
  transition: all 0.2s ease;
}

.radio-label:hover {
  border-color: #6b7280;
  background: rgba(255, 255, 255, 0.08);
}

.radio-label:has(input[type="radio"]:checked) {
  border-color: var(--color-green-400);
  background: rgba(0, 132, 70, 0.15);
}

.radio-label input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.radio-custom {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #6b7280;
  border-radius: 50%;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.radio-label:hover .radio-custom {
  border-color: #9ca3af;
}

.radio-label:has(input[type="radio"]:focus-visible) {
  border-color: var(--color-green-400);
  outline: 2px solid var(--color-green-400);
  outline-offset: -4px;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--color-green-400);
  background: var(--color-green-400);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.375rem;
  height: 0.375rem;
  background: white;
  border-radius: 50%;
}

/* Checkbox Styles */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: normal;
  color: #e5e7eb;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkbox-custom {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  border: 2px solid #6b7280;
  border-radius: 0.25rem;
  position: relative;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  margin-top: 0.125rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  border-color: var(--color-green-400);
  background-color: var(--color-green-400);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 0.3rem;
  height: 0.6rem;
  border: solid white;
  border-width: 0 2px 2px 0;
}

.checkbox-label:has(input[type="checkbox"]:focus-visible) .checkbox-custom {
  border-color: var(--color-green-400);
  outline: 2px solid var(--color-green-400);
  outline-offset: 2px;
}

.checkbox-text {
  font-size: 0.875rem;
}

.checkbox-text .terms-link {
  color: inherit;
  text-decoration: underline;
}

.checkbox-text .terms-link:focus-visible {
  outline: 2px solid var(--color-green-400);
  outline-offset: 2px;
}

/* Submit Button */
.registration-form .submit-button {
  margin-top: 0.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(154deg, #008446 -30%, #008299 157%);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.registration-form .submit-button:hover {
  opacity: 0.9;
}

.registration-form .submit-button .button-loader {
  display: none;
}

.registration-form .submit-button.loading .button-text {
  display: none;
}

.registration-form .submit-button.loading .button-loader {
  display: block;
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Thank You Message */
.registration-form.hidden {
  display: none;
}

.thank-you-message {
  text-align: center;
  padding: 2rem;
}

.thank-you-message.hidden {
  display: none;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(154deg, #008446 -30%, #008299 157%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s ease-out;
}

.thank-you-icon svg {
  width: 40px;
  height: 40px;
  color: white;
  stroke-width: 3;
}

.thank-you-message h3 {
  color: white;
  margin-bottom: 0.75rem;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.thank-you-message p {
  color: #9ca3af;
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
