:root {
  --green: #BED747;
  --green-hover: #d2e65c;
}

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

html {
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  background: #1a2a5e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/pti_bg.jpg') center center / cover no-repeat;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.logo-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 32px;
}

.logo-text {
  width: 270px;
  max-width: 80%;
  margin-bottom: 48px;
}

form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: #fff;
}

input, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  padding: 8px 0;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  border-bottom-color: var(--green);
  box-shadow: 0 1px 0 0 var(--green);
}

input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

textarea {
  resize: vertical;
  min-height: 48px;
  line-height: 1.5;
}

.form-group-full {
  margin-bottom: 40px;
}

.btn-wrap {
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #1a2a3e;
  border: none;
  border-radius: 999px;
  padding: 14px 36px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  min-height: 48px;
}

.btn:hover {
  background: var(--green-hover);
}

.btn:active {
  transform: scale(0.97);
}

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

.btn .arrow {
  font-size: 18px;
  line-height: 1;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26, 42, 62, 0.3);
  border-top-color: #1a2a3e;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.form-message {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
}

.form-message.success {
  color: var(--green);
}

.form-message.error {
  color: #ff6b6b;
}

.thankyou-container {
  text-align: center;
}

.thankyou-container h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--green);
}

.thankyou-container p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 400px;
  margin-bottom: 40px;
}

.site-footer {
  width: 100%;
  padding: 12px 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff;
}

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

  body {
    padding: 40px 20px 0;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 24px;
  }

  .logo-text {
    margin-bottom: 32px;
  }

  .thankyou-container h1 {
    font-size: 24px;
  }
}
