:root {
  --navy: #0d4f7d;
  --navy-dark: #09395a;
  --orange: #c2691d;
  --bg: #f4f6f8;
  --card-bg: #ffffff;
  --text: #1f2a33;
  --text-light: #5c6b77;
  --border: #d7dee4;
  --error: #c62828;
  --success: #1e7e34;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.header {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header .logo {
  height: 40px;
  max-width: 150px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}

.header h1 {
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin: 0;
}

.main {
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
}

.card {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(13, 79, 125, 0.12);
  padding: 28px 24px;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field[hidden] {
  display: none;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-dark);
}

.required {
  color: var(--orange);
  font-weight: 700;
}

.optional {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.85em;
}

input, select, textarea {
  font-size: 1rem;
  padding: 14px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  width: 100%;
  min-height: 48px;
}

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

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13, 79, 125, 0.15);
}

input.invalid, select.invalid, textarea.invalid {
  border-color: var(--error);
}

.error-msg {
  color: var(--error);
  font-size: 0.85rem;
  min-height: 1.1em;
}

.submit-btn {
  margin-top: 8px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  min-height: 52px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover:not(:disabled) {
  background: var(--navy-dark);
}

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

.submit-btn:disabled {
  background: #b9b9b9;
  cursor: not-allowed;
}

.privacy-note {
  margin: -6px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

.status-message {
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.status-message.success {
  background: #e4f6e8;
  color: var(--success);
}

.status-message.error {
  background: #fdeaea;
  color: var(--error);
}

@media (min-width: 700px) {
  .card {
    padding: 36px 40px;
  }
}

@media (max-width: 400px) {
  .card {
    padding: 20px 16px;
  }
  .header {
    padding: 14px 14px;
  }
}
