* { box-sizing: border-box; }

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: #f3f4f6;
  margin: 0;
  padding: 24px;
  color: #1f2937;
}

.wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 28px 32px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

h1 { color: #0f766e; margin-bottom: 4px; font-size: 22px; }
.sub { color: #6b7280; margin-top: 0; margin-bottom: 24px; font-size: 13px; }

fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 14px 16px 18px;
}

legend {
  color: #0f766e;
  font-weight: 700;
  padding: 0 6px;
  font-size: 13.5px;
}

label {
  display: block;
  font-size: 12.5px;
  color: #374151;
  margin-bottom: 12px;
}

input {
  width: 100%;
  margin-top: 5px;
  padding: 9px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13.5px;
  font-family: inherit;
}

input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

/* Arabic fields — right-to-left */
input[name$="Ar"],
input[name="nationalityAr"] {
  direction: rtl;
  text-align: right;
  font-size: 14px;
  background: #f9fffe;
  border-color: #a7f3d0;
}

input[name$="Ar"]:focus,
input[name="nationalityAr"]:focus {
  border-color: #0f766e;
  background: #fff;
}

/* Translation hint text */
.translate-hint {
  font-size: 11px;
  color: #0f766e;
  margin-top: 2px;
  display: inline-block;
}

.arabic-warn {
  display: block;
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 4px;
}

/* Person block header for multi-person */
.person-block {
  margin-bottom: 24px;
  border-bottom: 2px dashed #e5e7eb;
  padding-bottom: 18px;
}

.person-block:last-child {
  border-bottom: none;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.person-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: #f0fdf9;
  border: 1px solid #ccfbf1;
  border-radius: 6px;
}

.person-header-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f766e;
}

.btn-remove-person {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  width: auto;
}

.btn-remove-person:hover {
  background: #fecaca;
}

/* Add another person button */
.btn-add-another {
  width: 100%;
  background: #f0fdf9;
  color: #0f766e;
  border: 1.5px dashed #0f766e;
  padding: 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 18px;
  transition: background 0.15s;
}

.btn-add-another:hover {
  background: #ccfbf1;
}

/* Order price summary box */
.order-summary-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.order-summary-box strong {
  color: #0f766e;
  font-size: 16px;
}

/* Main action button */
button[type="submit"],
.btn-main {
  width: 100%;
  background: #0f766e;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

button[type="submit"]:hover,
.btn-main:hover {
  background: #0c5f58;
}

button:disabled,
.btn-main:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

#statusMsg {
  text-align: center;
  font-size: 12.5px;
  margin-top: 10px;
  min-height: 16px;
}

#statusMsg.error { color: #dc2626; }
#statusMsg.success { color: #16a34a; }

/* ── Payment / Verify / Success Pages ── */
.payment-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.payment-card h1,
.payment-card h2 {
  color: #0f766e;
  text-align: center;
  margin-bottom: 8px;
  font-size: 22px;
}

.payment-sub {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 24px;
}

.payment-icon {
  text-align: center;
  font-size: 48px;
  margin-bottom: 12px;
}

.order-info-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 0;
  font-size: 13.5px;
}

.order-info-row:last-child {
  border-bottom: none;
}

.order-info-label { color: #6b7280; }
.order-info-value { font-weight: 700; color: #111; }

.alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

.alert-success { background: #dcfce7; color: #16a34a; font-weight: 600; }
.alert-error   { background: #fee2e2; color: #dc2626; font-weight: 600; }
.alert-warning { background: #fef3c7; color: #92400e; }

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 16px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 8px;
}

.download-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
}

.btn-download-link {
  background: #0f766e;
  color: #fff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-block;
}

.btn-download-link:hover {
  background: #0c5f58;
}

.btn-secondary {
  width: 100%;
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.btn-secondary:hover {
  background: #f9fafb;
}

/* Verify page */
.verify-card {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  padding: 26px 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.verify-card h2 { color: #0f766e; text-align: center; }

.verify-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
  font-size: 13.5px;
}

.verify-row span:first-child { color: #6b7280; }
.verify-row span:last-child { font-weight: 700; }

.badge-valid {
  display: block;
  text-align: center;
  background: #dcfce7;
  color: #16a34a;
  padding: 8px;
  border-radius: 6px;
  font-weight: 700;
  margin-bottom: 18px;
}
