/* SFP-Europa — Stili form e pagine speciali */

/* FORM CARD */
.form-card { background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; max-width: 800px; margin: 0 auto; }
.form-card.wide { max-width: 960px; }
.form-card-header { background: var(--blue-deep); color: var(--white);
  padding: 1.5rem 2rem; display: flex; align-items: center; gap: 1rem; }
.form-card-icon { width: 44px; height: 44px; border-radius: 8px;
  background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.form-card-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.form-card-sub { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: .2rem; }
.form-card-body { padding: 2rem; }

/* SECTION DENTRO FORM */
.form-section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section-title { font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue-mid); margin-bottom: 1.25rem;
  padding: .5rem .75rem; background: var(--blue-xlight); border-radius: 4px;
  border-left: 3px solid var(--blue-deep); }

/* FIELD */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .78rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-light);
  margin-bottom: .4rem; }
.field input[type=text], .field input[type=email], .field input[type=number],
.field input[type=password], .field textarea, .field select {
  width: 100%; padding: .65rem .9rem; border: 1px solid var(--border);
  border-radius: 6px; font-family: var(--sans); font-size: .9rem;
  color: var(--text-dark); background: var(--white); outline: none;
  transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(0,80,204,.1); }
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7594' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }

/* RADIO / CHECKBOX */
.field input[type=radio], .field input[type=checkbox] { width: auto; accent-color: var(--blue-deep); margin-right: .4rem; }
.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: .5rem; margin-top: .25rem; }
.radio-group.inline, .checkbox-group.inline { flex-direction: row; flex-wrap: wrap; gap: .75rem 1.5rem; }
.radio-option, .checkbox-option { display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; color: var(--text-mid); cursor: pointer; }
.radio-option input, .checkbox-option input { flex-shrink: 0; }

/* FILE UPLOAD */
.file-upload-row { display: flex; align-items: center; gap: .75rem;
  padding: .75rem; background: var(--bg); border: 1px dashed var(--border);
  border-radius: 6px; margin-bottom: .5rem; }
.file-num { font-size: .7rem; font-weight: 700; background: var(--blue-deep);
  color: var(--white); width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0; }
.file-upload-row input[type=file] { flex: 1; font-size: .85rem; }
.file-upload-row input[type=text] { flex: 1; padding: .4rem .65rem;
  border: 1px solid var(--border); border-radius: 4px; font-size: .82rem; }

/* COTISATION GRID */
.cot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
.cot-option { display: flex; align-items: center; gap: .6rem;
  padding: .6rem .85rem; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg); cursor: pointer; font-size: .875rem; transition: border-color .15s, background .15s; }
.cot-option:has(input:checked) { border-color: var(--blue-mid); background: var(--blue-xlight); }
.cot-option input { accent-color: var(--blue-deep); flex-shrink: 0; }
.cot-amount { font-weight: 700; color: var(--blue-deep); margin-left: auto; }

/* ACTIONS */
.form-actions { display: flex; gap: 1rem; justify-content: center;
  padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--border); }
.btn-submit { background: var(--blue-deep); color: var(--white); border: none;
  padding: .75rem 2.5rem; border-radius: 6px; font-family: var(--sans);
  font-size: .95rem; font-weight: 600; cursor: pointer; transition: background .15s;
  letter-spacing: .01em; }
.btn-submit:hover { background: var(--blue-mid); }
.btn-reset { background: var(--white); color: var(--text-mid); border: 1px solid var(--border);
  padding: .75rem 2rem; border-radius: 6px; font-family: var(--sans);
  font-size: .9rem; cursor: pointer; transition: all .15s; }
.btn-reset:hover { border-color: var(--text-mid); }

/* NOTE / DISCLAIMER */
.form-note { background: var(--blue-xlight); border: 1px solid var(--border);
  border-left: 3px solid var(--blue-mid); border-radius: 0 6px 6px 0;
  padding: .85rem 1.1rem; font-size: .82rem; color: var(--text-mid);
  line-height: 1.6; margin-top: 1rem; }
.form-note a { color: var(--blue-mid); }

/* RESPONSE PAGE */
.response-card { background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; max-width: 600px; margin: 0 auto; text-align: center;
  overflow: hidden; }
.response-icon { font-size: 3.5rem; padding: 2.5rem 2rem 1rem; }
.response-card h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400;
  color: var(--text-dark); padding: 0 2rem .75rem; }
.response-card p { font-size: .95rem; color: var(--text-mid); padding: 0 2rem 2rem;
  line-height: 1.7; }
.response-actions { background: var(--bg); padding: 1.5rem 2rem;
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-gold { font-weight: 600; font-size: .875rem; padding: .65rem 1.4rem;
  border-radius: 6px; background: var(--gold); color: var(--text-dark);
  text-decoration: none; transition: opacity .15s; }
.btn-gold:hover { opacity: .9; }
.btn-outline { font-weight: 500; font-size: .875rem; padding: .65rem 1.4rem;
  border-radius: 6px; border: 1px solid var(--border); color: var(--text-mid);
  text-decoration: none; transition: border-color .15s; }
.btn-outline:hover { border-color: var(--blue-mid); color: var(--blue-mid); }

/* TWO-COL GRID */
.field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.field-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1.5rem; }

/* INTRO BOX */
.intro-box { background: var(--blue-xlight); border: 1px solid var(--border);
  border-left: 4px solid var(--blue-deep); border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem; margin-bottom: 2rem; font-size: .9rem;
  color: var(--text-mid); line-height: 1.7; }
.intro-box strong { color: var(--blue-deep); }

/* ── Validation inline — da aggiungere in style-forms.css ── */

.field-error {
  display: block;
  font-size: .75rem;
  color: #c0392b;
  margin-top: .3rem;
  line-height: 1.4;
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .1);
}

.invalid-group {
  padding: .5rem .75rem;
  border-radius: 6px;
  border: 1px solid rgba(192, 57, 43, .3);
  background: rgba(192, 57, 43, .04);
}

/* ── cot-grid :has fix per browser che non supportano :has ── */
.cot-option:has(input:checked) {
  border-color: var(--blue-mid);
  background: var(--blue-xlight);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 0; height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   SFP-Europa — Addizioni style-forms.css
   Aggiungere in fondo al file style-forms.css esistente
   ═══════════════════════════════════════════════════════════════ */

/* ── PAGE HEADER CON CARD (has-card) ── */
.page-header-inner.has-card {
  display: grid;
  grid-template-columns: 1fr 620px;
  gap: 2.5rem;
  align-items: center;
}

/* ── PAGE HEADER CARD (contenitore glass) ── */
.page-header-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

/* ── COLONNE INTERNE ── */
.phc-col {
  padding: 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.phc-col-left {
  border-right: 1px solid rgba(255,255,255,.15);
}
.phc-col-right {
  background: rgba(255,255,255,.05);
}

.phc-icon {
  font-size: 1.25rem;
  margin-bottom: .1rem;
}
.phc-title {
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: .25rem;
}
.phc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.phc-list li {
  font-size: .78rem;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
  padding-left: .75rem;
  position: relative;
}
.phc-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.phc-text {
  font-size: .78rem;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
  flex: 1;
}
.phc-link {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  margin-top: auto;
  padding-top: .5rem;
}
.phc-link:hover { text-decoration: underline; }

.phc-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--gold);
  color: var(--text-dark);
  font-size: .78rem;
  font-weight: 700;
  padding: .5rem .9rem;
  border-radius: 5px;
  text-decoration: none;
  transition: opacity .15s;
  margin-top: auto;
  white-space: nowrap;
  align-self: flex-start;
}
.phc-btn:hover { opacity: .88; }

/* ── FORM HEADER TABS ── */
.form-header-tabs {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .page-header-inner.has-card {
    grid-template-columns: 1fr;
  }
  .page-header-card {
    max-width: 480px;
  }
}
@media (max-width: 640px) {
  .page-header-card {
    grid-template-columns: 1fr;
  }
  .phc-col-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }
}