/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f0f4f8;
  color: #1a2b3c;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 24px rgba(15, 43, 70, 0.08);
  margin-top: 16px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.logo-img {
  height: 18px;
  object-fit: contain;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #0F2B46;
  letter-spacing: -0.5px;
}

.header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #0F2B46;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 15px;
  color: #5a7186;
  line-height: 1.6;
}

/* Progress Bar */
.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0F2B46, #2DD4BF);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 16.66%;
}

.progress-text {
  text-align: center;
  font-size: 13px;
  color: #8899a8;
  margin-bottom: 28px;
}

/* Form Screens */
.form-screen {
  display: none;
}

.form-screen.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-screen h2 {
  font-size: 20px;
  font-weight: 600;
  color: #0F2B46;
  margin-bottom: 24px;
}

/* Field Groups */
.field-group {
  margin-bottom: 22px;
}

.field-group label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #1a2b3c;
  margin-bottom: 8px;
}

.required {
  color: #e74c3c;
}

.optional {
  color: #8899a8;
  font-weight: 400;
  font-size: 13px;
}

/* Inputs & Textareas */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #1a2b3c;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2DD4BF;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
  background: #fff;
}

input::placeholder,
textarea::placeholder {
  color: #a0b0be;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.helper-text {
  display: block;
  font-size: 13px;
  color: #8899a8;
  margin-top: 6px;
}

/* Radio Buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-weight: 400;
  margin-bottom: 0;
}

.radio-option:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.radio-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #2DD4BF;
  cursor: pointer;
  flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-label {
  color: #0F2B46;
  font-weight: 500;
}

.radio-option:has(input:checked) {
  border-color: #2DD4BF;
  background: rgba(45, 212, 191, 0.05);
}

.radio-label {
  font-size: 15px;
  color: #3a4f63;
  cursor: pointer;
}

/* Validation */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #e2e8f0;
}

.field-group.error input,
.field-group.error textarea {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.field-group.error .error-msg {
  display: block;
  color: #e74c3c;
  font-size: 13px;
  margin-top: 6px;
}

.error-msg {
  display: none;
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

.btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

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

.btn-back {
  background: #e2e8f0;
  color: #5a7186;
  display: none;
}

.btn-back:hover {
  background: #cbd5e1;
}

.btn-next {
  background: #0F2B46;
  color: #ffffff;
  margin-left: auto;
}

.btn-next:hover {
  background: #163a5c;
}

.btn-submit {
  background: #2DD4BF;
  color: #0F2B46;
  display: none;
  margin-left: auto;
}

.btn-submit:hover {
  background: #22c5b0;
}

/* Confirmation */
.confirmation {
  text-align: center;
  padding: 40px 0;
}

.check-icon {
  width: 64px;
  height: 64px;
  background: #2DD4BF;
  color: #fff;
  font-size: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.confirmation h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 12px;
}

.confirmation p {
  font-size: 17px;
  color: #5a7186;
  line-height: 1.6;
}

.signature {
  font-weight: 600;
  color: #0F2B46 !important;
  margin-top: 8px;
  font-size: 18px !important;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 24px 18px;
    border-radius: 12px;
  }

  .header h1 {
    font-size: 21px;
  }

  .subtitle {
    font-size: 14px;
  }

  .btn {
    padding: 14px 24px;
  }
}

@media (min-width: 768px) {
  body {
    padding: 48px 24px;
  }

  .container {
    padding: 40px 36px;
  }
}
