/* ============ Tuto — Contact page styles ============ */

.contact-hero { padding: 132px 0 24px; position: relative; overflow: hidden; }
.contact-hero .hero-bg { position: absolute; inset: 0; z-index: -1; }
.contact-hero .hero-bg::before {
  content: ""; position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 980px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,.14), rgba(79,70,229,.08) 42%, transparent 70%);
}
.contact-hero .head { max-width: 640px; }
.contact-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.035em; margin: 18px 0 14px; }
.contact-hero p { font-size: 19px; color: var(--slate-500); text-wrap: pretty; }

.contact-section { padding: 48px 0 100px; }
.contact-grid { display: grid; grid-template-columns: 0.82fr 1fr; gap: 56px; align-items: start; }

/* ---- Left column ---- */
.c-left { display: flex; flex-direction: column; gap: 36px; }
.c-block h2 { font-size: 22px; margin-bottom: 18px; letter-spacing: -0.02em; }
.c-info { display: flex; flex-direction: column; gap: 4px; }
.c-info-row { display: flex; align-items: flex-start; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--slate-100); }
.c-info-row:last-child { border-bottom: none; }
.c-info-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--indigo-50); color: var(--indigo-600); display: grid; place-items: center; flex-shrink: 0; }
.c-info-ic svg { width: 21px; height: 21px; }
.c-info-row .lbl { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--slate-400); }
.c-info-row .val { font-size: 15.5px; font-weight: 500; color: var(--slate-800); margin-top: 2px; }
.c-info-row .val a { color: var(--indigo-600); }
.c-info-row .val a:hover { text-decoration: underline; }
.c-info-row .sub { font-size: 13.5px; color: var(--slate-500); margin-top: 1px; }

/* Help center quick links */
.help-links { display: flex; flex-direction: column; gap: 12px; }
.help-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), border-color .18s;
}
.help-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--indigo-200); }
.help-card .hc-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--grad-soft); color: var(--violet-600); display: grid; place-items: center; flex-shrink: 0; }
.help-card .hc-ic svg { width: 19px; height: 19px; }
.help-card .hc-txt { flex: 1; min-width: 0; }
.help-card .hc-txt .t { font-weight: 600; font-size: 15px; }
.help-card .hc-txt .d { font-size: 13px; color: var(--slate-500); margin-top: 1px; }
.help-card .hc-arrow { color: var(--slate-300); transition: transform .18s var(--ease), color .18s; }
.help-card:hover .hc-arrow { color: var(--indigo-600); transform: translateX(3px); }

/* ---- Right column: form card ---- */
.form-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 40px;
}
.form-card .fc-head h2 { font-size: 26px; letter-spacing: -0.025em; }
.form-card .fc-head p { color: var(--slate-500); font-size: 15px; margin-top: 6px; }
.form-grid { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--slate-700); }
.field label .req { color: var(--rose); }
.input, .select, .textarea {
  font-family: inherit; font-size: 15px; color: var(--slate-900);
  background: #fff; border: 1px solid var(--slate-200);
  border-bottom: 1.5px solid var(--slate-400);
  border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.input::placeholder, .textarea::placeholder { color: var(--slate-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--indigo-500);
  border-bottom-color: var(--indigo-600);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; cursor: pointer; }

/* Role radio-group (segmented) */
.role-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.role-opt { position: relative; }
.role-opt input { position: absolute; opacity: 0; pointer-events: none; }
.role-opt label {
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center;
  padding: 16px 10px; border: 1.5px solid var(--slate-200); border-radius: var(--radius);
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--slate-600);
  transition: all .16s var(--ease); background: #fff; height: 100%;
}
.role-opt label .r-ic { width: 26px; height: 26px; color: var(--slate-400); transition: color .16s; }
.role-opt label:hover { border-color: var(--slate-300); background: var(--slate-50); }
.role-opt input:checked + label { border-color: var(--indigo-600); background: var(--indigo-50); color: var(--indigo-700); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.role-opt input:checked + label .r-ic { color: var(--indigo-600); }
.role-opt input:focus-visible + label { box-shadow: 0 0 0 3px rgba(79,70,229,.25); }

/* GDPR checkbox */
.gdpr { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.gdpr input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gdpr .box {
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--slate-300);
  background: #fff; flex-shrink: 0; display: grid; place-items: center; margin-top: 1px;
  transition: all .15s var(--ease);
}
.gdpr .box svg { width: 15px; height: 15px; color: #fff; opacity: 0; transform: scale(.6); transition: all .15s var(--ease); }
.gdpr input:checked + .box { background: var(--indigo-600); border-color: var(--indigo-600); }
.gdpr input:checked + .box svg { opacity: 1; transform: scale(1); }
.gdpr input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(79,70,229,.25); }
.gdpr .gdpr-txt { font-size: 13.5px; color: var(--slate-500); line-height: 1.5; }
.gdpr .gdpr-txt a { color: var(--indigo-600); font-weight: 500; }
.gdpr .gdpr-txt a:hover { text-decoration: underline; }

/* Submit button states */
.btn-submit { position: relative; min-height: 52px; }
.btn-submit .spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn-submit.loading .label, .btn-submit.loading svg.arr { display: none; }
.btn-submit.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: none; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 48px 24px;
}
.form-success.show { display: flex; }
.form-success .ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; }
.form-success .ok-ic svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 24px; letter-spacing: -0.02em; }
.form-success p { color: var(--slate-500); font-size: 15.5px; max-width: 360px; }

.field-err { font-size: 13px; color: var(--rose); display: none; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea, .role-group.invalid { border-color: var(--rose) !important; }
.field.invalid .field-err { display: block; }
.gdpr.invalid .box { border-color: var(--rose); }

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 560px) {
  .form-card { padding: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .role-group { grid-template-columns: 1fr; }
  .role-opt label { flex-direction: row; justify-content: flex-start; padding: 14px 16px; }
  .contact-section { padding: 32px 0 72px; }
}
