/* ============================================================
   ABSENCE FORM — style.css
   ============================================================ */

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

body, html {
  font-family: 'DM Sans', sans-serif;
  background: #FAF8F4;
  color: #1C1C1A;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.container {
  padding: 30px 15px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
}

.logo-header {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 20px auto;
  display: block;
  height: auto;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.1;
  color: #2D5F3F;
}

/* ── Steps ───────────────────────────────────────────────── */

.form-step { display: none; }
.form-step.active { display: block; }

/* ── Fields ──────────────────────────────────────────────── */

.field {
  margin-bottom: 30px;
  text-align: left;
  width: 100%;
}

label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #444;
}

/* ── Inputs & Selects ────────────────────────────────────── */

select, input {
  width: 100%;
  max-width: 100%;
  height: 60px;
  padding: 0 15px;
  border: 2px solid #D8D4CC;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  box-sizing: border-box;
  background-color: #ffffff !important;
  color: #1C1C1A !important;
  outline: none;
  display: block;
  font-family: 'DM Sans', sans-serif;
}

select { appearance: auto; -webkit-appearance: menulist; }

input[type="date"], input[type="time"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  line-height: 1.2;
  -webkit-appearance: none;
}

input::-webkit-date-and-time-value { text-align: left; width: 100%; }

.other-input { margin-top: 10px; display: none; }

#dutyValidationAnchor {
  width: 100%;
  height: 0;
  opacity: 0;
  border: none;
  pointer-events: none;
  position: absolute;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn-next, .btn-submit {
  width: 100%;
  height: 70px;
  border: none;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  background: #2D5F3F;
  color: #FFFFFF;
  margin-top: 10px;
  touch-action: manipulation;
}

.btn-back {
  width: 100%;
  height: 70px;
  border: none;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  background: #E8E6E1;
  color: #1C1C1A;
  margin-top: 10px;
  touch-action: manipulation;
}

/* ── Confirm checkbox cards ──────────────────────────────── */

.confirm-card {
  display: flex;
  align-items: center;
  border: 2px solid #D8D4CC;
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 10px;
  background: #FFF;
  cursor: pointer;
  transition: 0.2s;
  touch-action: manipulation;
  font-size: 16px !important;
  font-weight: 700;
}

.confirm-card input[type="checkbox"] {
  width: 25px;
  height: 25px;
  min-width: 25px;
  padding: 0;
  margin-right: 15px;
  margin-bottom: 0;
  flex-shrink: 0;
  accent-color: #2D5F3F;
  display: inline-flex;
  background-color: #fff;
}

.confirm-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.confirm-card.selected {
  background: #007AFF !important;
  border-color: #007AFF !important;
  color: #FFF !important;
}

/* ── Duty grid ───────────────────────────────────────────── */

.duty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.duty-chip {
  padding: 12px 5px;
  border: 2px solid #D8D4CC;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
  touch-action: manipulation;
}

.duty-chip.selected {
  background: #007AFF !important;
  color: #FFFFFF !important;
  border-color: #007AFF !important;
}

/* ── Success screen ──────────────────────────────────────── */

#success-icon {
  font-size: 60px;
  color: #2D5F3F;
  margin-bottom: 20px;
}

/* ── Error banner ────────────────────────────────────────── */

.error-banner {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: left;
  display: none;
}
