/* GSM Angro — pagina de retur / retragere din contract
   Paletă și fonturi extrase direct din tema/Elementor a gsmangro.ro:
   albastru #1E73BE / #2178C9 (icon-uri, titluri secțiuni), verde accent #61CE70
   (kit global Elementor), Roboto + Roboto Slab (fonturi auto-hostate site). */

:root {
  --brand: #1E73BE;        /* albastru de brand — suprafețe mari (buton, bară, insignă) */
  --brand-text: #145a91;   /* variantă mai închisă, pentru text/linkuri pe alb (contrast AA) */
  --brand-dark: #0f4570;   /* hover/active pe butonul albastru */
  --accent: #61CE70;       /* accent verde de brand — doar fundaluri deschise/borduri, nu text */
  --accent-tint: #eaf9ec;
  --ink: #23262b;
  --body-text: #43474b;
  --muted: #75797d;
  --paper: #ffffff;
  --page: #f3f6f9;
  --line: #e2e7eb;
  --green: #0b8906;
  --green-tint: #eaf9ec;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 40, 0.05), 0 8px 24px -12px rgba(20, 30, 40, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--body-text);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .eyebrow, .badge-num, .tag-stub {
  font-family: 'Roboto Slab', serif;
}

h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }

a { color: var(--brand-text); text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
}
.skip-link:focus {
  left: 8px; top: 8px; z-index: 999; background: #fff; padding: .5em 1em; border-radius: 6px;
}

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

.top-strip { height: 4px; background: var(--brand); }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 0;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-badge {
  display: inline-flex; align-items: center; background: var(--brand);
  border-radius: 8px; padding: 8px 12px;
}
.brand-badge img { height: 20px; width: auto; }
.brand-name { font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand-name small { display: block; font-family: 'Roboto', sans-serif; font-weight: 400; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.contact-line {
  display: flex; gap: 18px; font-size: .92rem; color: var(--body-text); flex-wrap: wrap;
}

@media (max-width: 640px) {
  .site-header .wrap { padding: 0 28px; }
  .header-row { padding: 18px 0; gap: 10px; }
  .contact-line { flex-direction: column; gap: 8px; }
}
.contact-line a { color: var(--body-text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.contact-line a:hover { color: var(--brand-text); }
.contact-line svg { width: 16px; height: 16px; flex: none; }

.breadcrumb { font-size: .85rem; color: var(--muted); padding: 10px 0; }
.breadcrumb a { color: var(--muted); }

/* Hero */
.hero { padding: 44px 0 30px; }
.eyebrow {
  display: inline-block; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  font-size: .8rem; color: var(--brand-text); margin-bottom: .8em;
}
.hero-grid {
  display: flex; gap: 32px; align-items: center;
}
.hero-grid > div:first-child { flex: 1 1 auto; }
.hero p.lead { color: var(--body-text); font-size: 1.05rem; max-width: 46ch; }

.badge-14 {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; flex: none;
}
.badge-num {
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 700; line-height: 1;
  box-shadow: var(--shadow);
}
.badge-cap { font-size: .78rem; color: var(--muted); max-width: 14ch; line-height: 1.3; }

@media (max-width: 640px) {
  .hero-grid { flex-direction: column; align-items: flex-start; text-align: left; }
  .badge-14 { flex-direction: row; align-self: flex-start; }
  .badge-num { width: 76px; height: 76px; font-size: 1.9rem; }
}

/* Steps */
.steps { padding: 10px 0 34px; }
.steps-list {
  display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0;
}
.steps-list li {
  flex: 1 1 220px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px;
}
.step-no {
  font-family: 'Roboto Slab', serif; font-weight: 700; color: var(--brand-text);
  font-size: .85rem; letter-spacing: .04em;
}
.steps-list h3 { margin: .35em 0 .3em; font-size: .95rem; }
.steps-list p { margin: 0; font-size: .9rem; color: var(--muted); }


/* Cards / sections */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-bottom: 26px; box-shadow: var(--shadow);
}
.card > h2:first-child { margin-top: 0; }

.legal p, .legal li { color: var(--body-text); }
.legal ul { padding-left: 1.2em; }
.legal .fine { color: var(--muted); font-size: .88rem; }

details.model-form {
  margin-top: 18px; border: 1px dashed var(--line); border-radius: 8px; padding: 4px 16px;
}
details.model-form summary {
  cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
details.model-form summary::-webkit-details-marker { display: none; }
details.model-form summary::before {
  content: '+'; color: var(--brand); font-size: 1.2rem; font-weight: 700; width: 1em;
}
details.model-form[open] summary::before { content: '−'; }
.model-doc {
  font-family: 'Roboto', sans-serif; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 26px 28px; margin: 0 0 16px; font-size: .93rem;
  box-shadow: 0 1px 3px rgba(20, 30, 40, 0.05);
}
.model-note {
  margin: 0 0 18px; font-style: italic; color: var(--muted); font-size: .85rem;
}
.model-to, .model-statement { margin: 0 0 16px; line-height: 1.6; }
.model-to strong { color: var(--ink); }

.model-fields { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.model-field-row { display: flex; gap: 24px; }
.model-field-row .model-field { flex: 1 1 0; }
.model-field.narrow { flex: 0 0 8em; }
.model-field { display: flex; flex-direction: column; gap: 6px; }
.model-label {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600;
}
.model-label em { text-transform: none; font-style: italic; letter-spacing: 0; }
.model-line { display: block; height: 1px; background: #c9ced2; margin-top: 18px; }

.model-footnote { margin: 22px 0 0; font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }

.print-btn {
  margin-top: 18px; background: none; border: 1px solid var(--brand-text); color: var(--brand-text);
  border-radius: 6px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer;
}
.print-btn:hover { background: var(--accent-tint); }

@media (max-width: 560px) {
  .model-field-row { flex-direction: column; gap: 16px; }
  .model-field.narrow { flex: 1 1 auto; }
}

@media print {
  .site-header, .breadcrumb, .hero, .steps, .form-card, .site-footer, .print-btn,
  .card.legal > h2, .card.legal > p, .card.legal > ul, details.model-form summary { display: none; }
  body { background: #fff; }
  details.model-form { border: none; margin: 0; padding: 0; }
  .card.legal { box-shadow: none; border: none; padding: 0; }
  .model-doc { box-shadow: none; }
}

/* Form card */
.form-card { position: relative; overflow: hidden; }
.form-card .stub {
  display: inline-block; font-family: 'Roboto Slab', serif; font-weight: 700; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text);
  background: var(--accent-tint); padding: 5px 10px; border-radius: 999px; margin-bottom: 10px;
}
.perforation {
  border: none; border-top: 2px dashed var(--line); margin: 20px 0 24px;
}

.field-grid {
  display: flex; flex-wrap: wrap; gap: 18px 20px;
}
.field { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.field.full { flex-basis: 100%; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: -2px; }
.field .required { color: var(--brand-text); }

input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  font: inherit; padding: 11px 12px; border: 1px solid #d3d8dc; border-radius: 8px;
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 90px; }

.checkline {
  display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--body-text);
}
.checkline input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.checkline a { color: var(--brand-text); }

.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--brand); color: #fff; border: none; border-radius: 8px;
  padding: 14px 28px; font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 1rem;
  letter-spacing: .02em; cursor: pointer; transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-foot .fine { color: var(--muted); font-size: .85rem; max-width: 40ch; }

.alert {
  border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; font-size: .93rem;
}
.alert-error { background: #fdecec; border: 1px solid #f3c6c6; color: #8a1f1f; }
.alert-error ul { margin: 6px 0 0; padding-left: 1.1em; }
.alert-success { background: var(--green-tint); border: 1px solid #bfe4c3; color: #1e5f1a; }

.confirm-panel { text-align: left; }
.confirm-panel h2 { color: #1e5f1a; }
.confirm-panel .check {
  width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px;
}

/* Footer */
.site-footer {
  background: #1c2126; color: #c7ccd1; margin-top: 40px; padding: 34px 0 26px; font-size: .88rem;
}
.site-footer a { color: #bcd9f3; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-grid > div { flex: 1 1 200px; }
.site-footer h4 { color: #fff; font-family: 'Roboto Slab', serif; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.site-footer p { margin: 0 0 6px; color: #aeb4b9; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.copyline { margin-top: 24px; padding-top: 16px; border-top: 1px solid #333a40; color: #8a9299; font-size: .8rem; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a { transition: none; }
}
