/* ANLAŞMA TALEP FORMU — styles taken from the IRO page design (FSMVÜ _ Agreement Request), plus submit states at the end. */
:root {
  --bg-page: #f3f5fb;
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(135deg, #006884, #0095aa);
  --bg-chip: rgba(255, 255, 255, 0.13);
  --border-soft: #e0e4f1;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --accent: #006884;
  --accent-soft: rgba(0, 104, 132, 0.12);
  --danger: #b91c1c;
  --fsm-red: #d71920;
  --radius-lg: 18px;
  --radius-md: 10px;
  --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
}

.agreement-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* HERO */
.agreement-hero {
  background: var(--bg-hero);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.agreement-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.35), transparent 65%);
  opacity: 0.85;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-chip);
  font-size: 11px;
  margin-bottom: 6px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.agreement-hero-title {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d71920; /* FSM kırmızısı */
}

.agreement-hero-subtitle {
  margin: 6px 0 10px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agreement-hero-text {
  margin: 0;
  font-size: 14px;
  max-width: 640px;
  line-height: 1.6;
}

.hero-footnote {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.92;
}

.hero-footnote strong {
  font-weight: 600;
}

/* ALERT / INFO BOX */
.agreement-alert {
  margin: 18px 0 22px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef9c3;
  border: 1px solid #facc15;
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #854d0e;
}

.agreement-alert-icon {
  font-size: 16px;
  line-height: 1.2;
  margin-top: 1px;
}

.agreement-alert strong {
  font-weight: 600;
}

.agreement-alert a {
  color: #4b5563;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* FORM BASE */
.agreement-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px 20px 26px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border-soft);
}

.form-section {
  padding: 16px 14px 18px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.form-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.form-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.12);
  color: #6b7280;
  background: #f3f4f6;
}

.form-section-desc {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}

.form-grid-1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 14px;
}

@media (max-width: 800px) {
  .form-grid,
  .form-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.form-label {
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.label-main {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.label-translation {
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
}

.required-star {
  color: var(--danger);
  margin-left: 2px;
}

.label-hint {
  font-size: 11px;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select {
  border-radius: 9px;
  border: 1px solid #d1d5db;
  padding: 8px 9px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
  min-height: 34px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
  background: #ffffff;
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.radio-pill input {
  accent-color: var(--accent);
}

.radio-pill:hover {
  border-color: var(--accent);
  background: #f9fafb;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.checkbox-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  padding-top: 3px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.checkbox-item input {
  margin-top: 2px;
  accent-color: var(--accent);
}

.checkbox-label-main {
  font-size: 13px;
}

.checkbox-label-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.muted-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.grid-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* MOBILITY GRID (QUOTAS) */
.mobility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .mobility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mobility-item {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 8px 8px 9px;
  font-size: 12px;
}

.mobility-label {
  margin-bottom: 2px;
  font-weight: 500;
}

.mobility-label span {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.mobility-item input {
  width: 100%;
  text-align: center;
}

/* FILE INPUT */
input[type="file"] {
  padding: 7px 8px;
  font-size: 12px;
  border-radius: 9px;
  border: 1px dashed #cbd5e1;
  background: #f9fafb;
}

/* FOOTER / SUBMIT */
.form-footer {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px dashed #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.submit-note {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 420px;
}

.btn-submit {
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 20px rgba(0, 104, 132, 0.3);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0, 104, 132, 0.4);
  background: #00536a;
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 104, 132, 0.35);
}

/* SUBMIT STATES */
.form-field.wide {
  grid-column: 1 / -1;
}

.field-error {
  font-size: 12px;
  color: var(--danger);
}

.has-error input,
.has-error textarea,
.has-error select {
  border-color: var(--danger);
}

.has-error .radio-pill,
.has-error .checkbox-item input {
  border-color: var(--danger);
  outline-color: var(--danger);
}

.agreement-flash {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
}

.agreement-done {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  font-size: 14px;
  line-height: 1.6;
}

.agreement-done h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--accent);
}

.agreement-done .ref {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.btn-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}
