:root {
  --color-primary: #FF5512;
  --color-primary-light: #FFBBA0;
  --color-primary-dark: #7F2A09;
  --color-accent: #FF990A;

  --color-bg: #F7F7F9;
  --color-surface: #FFFFFF;
  --color-border: #E1E4EA;

  --color-text-main: #1F2933;
  --color-text-muted: #6B7280;

  --radius-card: 16px;
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.08);
  --transition-fast: 0.2s ease-out;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text-main);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  margin-bottom: 24px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

h1, h2, h3 {
  margin: 0 0 12px 0;
  font-weight: 700;
}

p {
  line-height: 1.6;
  color: var(--color-text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 16px rgba(255, 85, 18, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

form .form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 85, 18, 0.15);
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-weight: 600;
}

.alert.error {
  background: #ffeaea;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert.success {
  background: #ecfdf3;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.alert.info {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bfdbfe;
}

.footer {
  text-align: center;
  margin: 32px 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.hand-icon {
  display: inline-block;
  font-size: 32px;
  animation: wave 1.4s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(16deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(12deg); }
  80% { transform: rotate(-6deg); }
  100% { transform: rotate(0deg); }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  color: var(--color-text-muted);
  position: relative;
  overflow: hidden;
}

.step.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.step.completed {
  background: linear-gradient(120deg, var(--color-primary-light), #fff);
  color: var(--color-primary-dark);
}

.step-content {
  display: none;
  animation: fadeSlide 0.35s ease;
}

.step-content.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress {
  width: 100%;
  height: 10px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 18px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  width: 0%;
  transition: width var(--transition-fast);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 14px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.draft { background: #fff4e6; color: #c2410c; }
.badge.complete { background: #e0f2fe; color: #075985; }
.badge.pending { background: #fff7ed; color: #c2410c; }
.badge.approved { background: #ecfdf3; color: #15803d; }
.badge.rejected { background: #ffeaea; color: #b91c1c; }

.flex {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  padding: 16px;
  z-index: 20;
}

.modal.active {
  display: flex;
}

.modal .card {
  max-width: 520px;
  width: 100%;
}

.overlay-loading {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  backdrop-filter: blur(2px);
}

.overlay-loading.active {
  display: flex;
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid var(--color-primary-light);
  border-top-color: var(--color-primary);
  animation: spin 0.9s linear infinite;
}

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

.section-title {
  margin-top: 24px;
  font-size: 18px;
}

.profile-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.photo-slot {
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  min-height: 180px;
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.photo-slot:hover,
.photo-slot.dragover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.photo-slot .label {
  font-weight: 700;
  color: var(--color-text-main);
}

.photo-preview {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  background: var(--color-bg);
  background-size: cover;
  background-position: center;
  margin: 10px 0;
}

.dropzone {
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.doc-list {
  margin-top: 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.doc-item {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

.doc-item:last-child {
  border-bottom: none;
}

.doc-item small {
  color: var(--color-text-muted);
}

.text-muted {
  color: var(--color-text-muted);
  font-size: 14px;
}

.doc-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.doc-row strong {
  color: var(--color-text-main);
}

@media (min-width: 768px) {
  .profile-card {
    grid-template-columns: 1.2fr 1fr;
  }
}
