:root {
  --bg: #ffffff;
  --text: #111111;
  --text-muted: #555555;
  --border: #e5e5e5;
  --btn-bg: #111111;
  --btn-text: #ffffff;
}

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

html {
  color-scheme: light;
  background-color: var(--bg);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5rem 2rem;
  position: relative;
}

/* Ambient Glowing Blue Edge Margin Effect */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  box-shadow:
    inset 0 0 0 2px rgba(0, 160, 255, 0.8),
    inset 0 0 18px 3px rgba(0, 150, 255, 0.45),
    inset 0 0 45px 8px rgba(0, 130, 255, 0.2);
  animation: edgePulse 3.5s ease-in-out infinite alternate;
}

@keyframes edgePulse {
  0% {
    box-shadow:
      inset 0 0 0 2px rgba(0, 140, 255, 0.65),
      inset 0 0 14px 2px rgba(0, 130, 255, 0.35),
      inset 0 0 35px 5px rgba(0, 120, 255, 0.15);
  }
  100% {
    box-shadow:
      inset 0 0 0 2.5px rgba(0, 190, 255, 0.95),
      inset 0 0 24px 5px rgba(0, 170, 255, 0.6),
      inset 0 0 60px 12px rgba(0, 150, 255, 0.3);
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.brand {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  background-color: #fafafa;
}

main {
  width: 100%;
  max-width: 680px;
  margin: 5rem auto;
}

.status-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}

.subheading {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2.25rem;
}

.contact {
  margin-top: 1rem;
}

.contact-btn {
  display: inline-block;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--btn-bg);
  transition: opacity 0.15s ease;
}

.contact-btn:hover {
  opacity: 0.85;
}

.contact-email {
  margin-left: 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-email a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  body {
    padding: 2rem 1.25rem;
  }

  main {
    margin: 3.5rem auto;
  }

  h1 {
    font-size: 2.125rem;
  }

  .subheading {
    font-size: 1.125rem;
  }

  .contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .contact-email {
    margin-left: 0;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Contact Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 480px;
  padding: 2rem 1.85rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}

.modal-card::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 3px;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.modal-title-group h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.modal-title-group p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.15s ease;
  margin-top: -0.25rem;
  margin-right: -0.25rem;
}

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

.modal-close-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-group label .required {
  color: #d9383a;
}

.form-group label .optional-badge {
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background-color: #fafafa;
  border: 1px solid var(--border);
  outline: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-control:focus {
  background-color: #ffffff;
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.form-control::placeholder {
  color: #999999;
}

textarea.form-control {
  resize: vertical;
  min-height: 84px;
}

.form-control.is-invalid {
  border-color: #d9383a;
  background-color: #fffbfb;
}

.form-control.is-invalid:focus {
  border-color: #d9383a;
  box-shadow: 0 0 0 1px #d9383a;
}

.field-error {
  display: none;
  font-size: 0.75rem;
  color: #d9383a;
  margin-top: 0.35rem;
  font-weight: 500;
  line-height: 1.3;
}

.field-error.visible {
  display: block;
}

.form-submit-btn {
  width: 100%;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-bg);
  padding: 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.form-submit-btn:hover:not(:disabled) {
  opacity: 0.85;
}

.form-submit-btn:active:not(:disabled) {
  transform: scale(0.99);
}

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

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: none;
}

.form-submit-btn.loading .spinner {
  display: inline-block;
}

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

/* Alert message */
.form-alert {
  display: none;
  font-size: 0.8125rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1rem;
  border-left: 3px solid;
}

.form-alert.error {
  display: block;
  background-color: #fff2f2;
  border-color: #d9383a;
  color: #a31c1e;
}

/* Success State */
.modal-success {
  display: none;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.modal-success.active {
  display: block;
}

.success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
  stroke-width: 2.5;
  fill: none;
}

.modal-success h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.modal-success p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

@media (max-width: 480px) {
  .modal-card {
    padding: 1.75rem 1.25rem;
  }

  .modal-title-group h2 {
    font-size: 1.25rem;
  }
}
