/* FORM CARD WRAPPER */
.form-card {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  animation: fadeIn .6s ease;
}

/* SECTION HEADERS */
.form-card h2 {
  font-size: 20px;
  margin: 25px 0 15px;
  font-weight: 700;
  border-left: 5px solid var(--primary);
  padding-left: 10px;
}

/* LABELS */
.form-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
}

/* INPUTS & SELECTS */
.form-card input,
.form-card select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border-color-light);
  border-radius: 8px;
  font-size: 15px;
  background: var(--card-bg);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.form-card input:focus,
.form-card select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 6px rgba(0,123,255,0.4);
  outline: none;
}

/* BUTTON */
.form-card button {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .3s ease;
}

.form-card button:hover {
  background: var(--primary-dark);
}

/* SUCCESS / ERROR MESSAGE */
.form-message {
  margin-top: 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.form-message strong {
  color: var(--primary);
}

/* ANIMATION */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Base dropdown styling */
.form-card select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border-color-light);
  border-radius: 8px;
  font-size: 15px;
  background: var(--card-bg);
  color: var(--text-color);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
  appearance: none; /* removes default browser arrow styling */
}

/* Focus state */
.form-card select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 6px rgba(0,123,255,0.4);
  outline: none;
}

/* Light mode variables */
:root {
  --text-color: #000000;
}

/* Dark mode variables */
:root[data-theme="dark"] {
  --text-color: #ffffff;
}

/* Logo and title at top of form */
.form-logo {
  text-align: center;
  margin-bottom: 20px;
}

.form-logo img {
  width: 200px;
  margin-bottom: 10px;
}

.form-logo .form-title {
  font-size: 200px;
  font-weight: 700;
  color: var(--text-color);
}

/* Inputs & Selects */
.form-card input,
.form-card select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border-color-light);
  border-radius: 8px;
  font-size: 15px;
  background: var(--card-bg);
  color: var(--text-color); /* theme-aware text color */
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.form-card input::placeholder {
  color: var(--text-color);
  opacity: 0.6; /* softer placeholder */
}

.form-card select:focus,
.form-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 6px rgba(0,123,255,0.4);
  outline: none;
}

/* Theme variables */
:root {
  --text-color: #000000;
}

:root[data-theme="dark"] {
  --text-color: #ffffff;
}

/* Section headers */
.form-card h2 {
  font-size: 20px;
  margin: 30px 0 20px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.passport-preview {
  text-align: center;
  margin-bottom: 20px;
}

.passport-preview img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  flex: 1;
  padding-right: 40px; /* space for icon */
}

.toggle-password {
  position: absolute;
  right: 10px;
  cursor: pointer;
  user-select: none;
}

