* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
}

.form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  border-top: 6px solid #0f172a;
}

.eyebrow {
  color: #2563eb;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  margin: 0 0 8px;
}

.title {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #111827;
}

.subtitle {
  color: #6b7280;
  font-size: 15px;
  margin: 0 0 28px;
}

.required {
  color: #dc2626;
}

.field-group {
  position: relative;
  margin-bottom: 22px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 16px 40px 16px 16px;
  font-size: 15px;
  color: #111827;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 130px;
  padding-right: 16px;
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.field-group.has-error input,
.field-group.has-error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.req-mark {
  position: absolute;
  right: 16px;
  top: 17px;
  color: #dc2626;
  font-size: 15px;
  pointer-events: none;
}

.textarea-mark {
  top: 12px;
}

.error-msg {
  color: #dc2626;
  font-size: 13px;
  margin: 6px 2px 0;
  min-height: 0;
  display: none;
}

.field-group.has-error .error-msg,
.consent-box.has-error .error-msg {
  display: block;
}

/* Phone group */
.phone-row {
  display: flex;
  gap: 12px;
}

.country-code {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 14px;
  min-width: 90px;
  font-size: 15px;
  color: #374151;
  background: #fff;
  flex-shrink: 0;
}

.country-code .flag {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.country-code .caret {
  margin-left: auto;
  font-size: 10px;
  color: #6b7280;
}

.phone-input-wrap {
  position: relative;
  flex: 1;
}

/* Consent */
.consent-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 26px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #2563eb;
  cursor: pointer;
}

.consent-text {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.consent-text a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
}

.consent-box.has-error {
  border-color: #dc2626;
}

/* Submit */
.submit-btn {
  width: 100%;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 17px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.submit-btn:hover {
  background: #1a41b8;
}

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

.send-icon {
  width: 18px;
  height: 18px;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
}

.form-status.success {
  display: block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

@media (max-width: 480px) {
  .title {
    font-size: 26px;
  }
  .phone-row {
    flex-wrap: wrap;
  }
  .country-code {
    min-width: 78px;
  }
}
