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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  line-height: 1.6;
  color: #2e2e2e;
  background: #f9f9f9;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #004f4d;
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #004f4d;
}

.form-header h1 {
  color: #004f4d;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #666;
  font-size: 0.95rem;
}

.form-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-title {
  color: #004f4d;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e1e5e9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.9rem;
}

.required {
  color: #ff6b6b;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fafafa;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #004f4d;
  background: white;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 10px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.checkbox-label:hover {
  border-color: #004f4d;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #004f4d;
}

.hint-text {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.25rem;
  font-style: italic;
}

.file-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafafa;
}

.file-upload-area:hover {
  border-color: #004f4d;
  background: #f0f9f9;
}

.file-upload-area i {
  font-size: 2rem;
  color: #004f4d;
  margin-bottom: 0.5rem;
}

.file-upload-area p {
  color: #666;
  font-size: 0.9rem;
}

.file-upload-area input[type="file"] {
  display: none;
}

.file-name {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #004f4d;
  font-weight: 500;
}

.word-count {
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
}

.submit-btn {
  background: #004f4d;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #003d3b;
}

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

.info-box {
  background: #e8f5f4;
  border-left: 4px solid #004f4d;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.info-box h4 {
  color: #004f4d;
  margin-bottom: 0.5rem;
}

.info-box p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.success-message {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.success-message i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.draft-banner {
  background: linear-gradient(135deg, #e8f5f4 0%, #d4edda 100%);
  border: 1px solid #90be6d;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.draft-banner i {
  font-size: 1.5rem;
  color: #004f4d;
}

.draft-banner-content {
  flex: 1;
}

.draft-banner h4 {
  color: #004f4d;
  margin-bottom: 0.25rem;
}

.draft-banner p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.draft-banner-actions {
  display: flex;
  gap: 0.5rem;
}

.draft-banner-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.draft-resume-btn {
  background: #004f4d;
  color: white;
}

.draft-resume-btn:hover {
  background: #003d3b;
}

.draft-discard-btn {
  background: white;
  color: #666;
  border: 1px solid #ddd;
}

.draft-discard-btn:hover {
  background: #f8f9fa;
  color: #dc3545;
  border-color: #dc3545;
}

.login-prompt {
  background: #fff8e1;
  border: 1px solid #ffcc02;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-prompt i {
  font-size: 1.5rem;
  color: #856404;
}

.login-prompt-content {
  flex: 1;
}

.login-prompt h4 {
  color: #856404;
  margin-bottom: 0.25rem;
}

.login-prompt p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.login-prompt a {
  color: #004f4d;
  font-weight: 600;
}

.button-row {
  display: flex;
  gap: 1rem;
}

.save-draft-btn {
  background: white;
  color: #004f4d;
  border: 2px solid #004f4d;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.save-draft-btn:hover {
  background: #e8f5f4;
}

.save-draft-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.draft-status {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: 0.75rem;
}

.draft-status.saving {
  color: #856404;
}

.draft-status.saved {
  color: #155724;
}

.draft-status.error {
  color: #721c24;
}

@media (max-width: 600px) {
  .button-row {
    flex-direction: column;
  }

  .draft-banner {
    flex-direction: column;
    text-align: center;
  }

  .draft-banner-actions {
    width: 100%;
    justify-content: center;
  }
}

.acct-signin-btn {
  background: #ff9800;
  color: white;
  border: none;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.acct-signin-btn:hover {
  background: #ffb74d;
}
.acct-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  color: #8a9199;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.acct-divider::before,
.acct-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.acct-category-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 0.35rem;
}
.acct-type-btn {
  background: white;
  border: 2px solid #c4cdd6;
  border-radius: 10px;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
  min-height: 112px;
  box-sizing: border-box;
}
.acct-type-btn:hover {
  border-color: rgba(0, 79, 77, 0.35);
  background: #f0fdf4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.acct-type-btn--full {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 63%;
  margin: 0 auto;
  min-height: auto;
  padding: 14px 18px;
}
.acct-type-btn--full .acct-type-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}
.acct-type-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 79, 77, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #004f4d;
  margin-bottom: 0.5rem;
}
.acct-type-label {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.acct-type-desc {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}
/* Tighter spacing overrides */
#accountTypeModal .auth-modal-body > p:first-child {
  margin-bottom: 0.7rem !important;
}
#accountTypeModal .auth-modal-body > div:nth-child(2) {
  margin-bottom: 0.9rem !important;
}
/* Softer close button */
#accountTypeModal .auth-modal-close {
  top: 18px;
  opacity: 0.7;
}

.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.auth-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.auth-modal-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}
.auth-modal-header h3,
.auth-modal-header h2 {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
  color: #004f4d;
  font-size: 1.4rem;
  pointer-events: none;
}
.auth-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  line-height: 1;
}
.auth-modal-body {
  padding: 24px;
}
.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}
.auth-form .form-group {
  margin-bottom: 16px;
}
.auth-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}
.auth-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
}
.auth-btn-primary {
  width: 100%;
  padding: 14px;
  background: #004f4d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.auth-btn-primary:hover {
  background: #003836;
}
.auth-btn-secondary {
  width: 100%;
  padding: 14px;
  background: white;
  color: #004f4d;
  border: 2px solid #004f4d;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-btn-secondary:hover {
  background: #f0f7f7;
}
.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}
.auth-divider span {
  padding: 0 15px;
  color: #888;
  font-size: 14px;
}
.required {
  color: #ff6b6b;
}
