/* Iris Perfumer — Application Portal
   Brand palette (do not alter):
   --iris-green : #00653E  anchor / mark / cta
   --label-cream: #D4C494  product-only accent, thin lines/badges ONLY, never a page/section bg
   --shell-white: #F4F1E8  default light background (never pure #fff)
   --ink        : #1E2A24  body text (never pure #000)
*/

:root {
  --iris-green: #00653E;
  --iris-green-deep: #004c2f;
  --label-cream: #D4C494;
  --shell-white: #F4F1E8;
  --ink: #1E2A24;
  --ink-soft: rgba(30, 42, 36, 0.62);
  --ink-faint: rgba(30, 42, 36, 0.38);
  --line: rgba(30, 42, 36, 0.14);
  --card-bg: #FBFAF5;
  --danger: #8a2b1f;
  --radius: 10px;
  --max-width: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--shell-white);
  color: var(--ink);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, "Iranian Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / mark ---------- */
.site-header {
  padding: 28px 0 8px;
  text-align: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iris-green);
  font-weight: 500;
}

.brand-mark .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iris-green);
  display: inline-block;
}

/* ---------- Hero ---------- */
.hero {
  padding: 44px 0 36px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(28px, 6vw, 40px);
  margin: 0 0 14px;
  font-weight: 500;
  color: var(--iris-green);
  letter-spacing: -0.01em;
}

.hero p {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 17px;
}

.cta-button {
  display: inline-block;
  margin-top: 26px;
  padding: 14px 34px;
  background: var(--iris-green);
  color: var(--shell-white);
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cta-button:hover,
.cta-button:focus-visible { background: var(--iris-green-deep); }

/* ---------- About section ---------- */
.about {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.about h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 14px;
}

.about p { color: var(--ink-soft); margin: 0 0 12px; }

.about-points {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.about-points li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--ink-soft);
}

.about-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--iris-green);
}

/* ---------- Form ---------- */
.apply-section { padding: 44px 0 64px; }

.apply-section h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--iris-green);
}

.apply-section > .container > p.lead {
  color: var(--ink-soft);
  margin: 0 0 30px;
}

form.application-form { display: grid; gap: 22px; }

fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

legend {
  font-size: 14px;
  font-weight: 500;
  color: var(--iris-green);
  padding: 0 0 4px;
  letter-spacing: 0.02em;
}

.field { display: grid; gap: 6px; }

.field.two-col { grid-template-columns: 1fr; }

@media (min-width: 560px) {
  .row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

label .optional {
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 12.5px;
}

label .required-mark { color: var(--danger); margin-inline-start: 2px; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--iris-green);
  box-shadow: 0 0 0 3px rgba(0, 101, 62, 0.12);
}

textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231E2A24' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-start: 34px;
}

.help-text {
  font-size: 12.5px;
  color: var(--ink-faint);
}

.char-count {
  font-size: 11.5px;
  color: var(--ink-faint);
  text-align: left;
}

/* radio / segmented options for cooperation type & marital status */
.choice-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.choice-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice-group label.choice {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  font-weight: 400;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice-group input[type="radio"]:checked + label.choice,
.choice-group input[type="radio"]:focus-visible + label.choice {
  border-color: var(--iris-green);
  background: rgba(0, 101, 62, 0.08);
  color: var(--iris-green-deep);
  font-weight: 500;
}

/* file upload */
.file-drop {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  background: var(--card-bg);
  cursor: pointer;
}

.file-drop.has-file { border-color: var(--iris-green); }

.file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-drop-label {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
}

.file-drop-filename {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--iris-green-deep);
  word-break: break-all;
}

/* Jalali date picker trigger */
.date-picker-wrap { position: relative; }

.date-picker-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: right;
  cursor: pointer;
}

.date-picker-input:focus { outline: none; border-color: var(--iris-green); box-shadow: 0 0 0 3px rgba(0, 101, 62, 0.12); }

.date-picker-input.placeholder { color: var(--ink-faint); }

/* Submit */
.submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

button.submit-btn {
  padding: 14px 40px;
  background: var(--iris-green);
  color: var(--shell-white);
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

button.submit-btn:hover,
button.submit-btn:focus-visible { background: var(--iris-green-deep); }

button.submit-btn:disabled { opacity: 0.6; cursor: progress; }

.form-alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14.5px;
  margin-bottom: 6px;
}

.form-alert.error {
  background: rgba(138, 43, 31, 0.08);
  color: var(--danger);
  border: 1px solid rgba(138, 43, 31, 0.25);
}

.field-error {
  font-size: 12.5px;
  color: var(--danger);
}

/* ---------- Success state ---------- */
.success-panel {
  max-width: var(--max-width);
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.success-panel .badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--iris-green);
  color: var(--shell-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 26px;
}

.success-panel h1 {
  font-size: 24px;
  font-weight: 500;
  color: var(--iris-green);
  margin: 0 0 10px;
}

.success-panel p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 30px 0 40px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 400px) {
  .hero { padding: 32px 0 28px; }
  .cta-button { width: 100%; }
}
