*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #FF3D33;
  --red-dk: #c0170e;
  --red-lt: #fff3f2;
  --dark:   #1a1a1a;
  --mid:    #555;
  --muted:  #888;
  --border: #e8eaee;
  --bg:     #f6f7f9;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
}

/* ── Form page centering wrapper (inside .main-content) ── */
.form-page-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px 60px;
}

/* ── Card container ── */
.form-card {
  background: #fff;
  width: 100%;
  max-width: 660px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 28px rgba(0,0,0,.08);
  overflow: hidden;
}

/* ── Form header ── */
.form-header {
  padding: 24px 36px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fff;
}
.fh-logo { line-height: 1; flex-shrink: 0; }
.fh-logo .g2  { font-size: 30px; font-weight: 900; color: var(--red); letter-spacing: -2px; }
.fh-logo .dot { font-size: 30px; font-weight: 900; color: #bbb; }
.fh-logo .sub { font-size: 10px; color: #bbb; letter-spacing: 1.5px; margin-top: -1px; text-transform: uppercase; }

.fh-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.fh-text h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}
.fh-text p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.fh-accent {
  margin-left: auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--red-lt);
  border: 1px solid #ffd5d3;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Red accent bar under header ── */
.form-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff8078);
}

/* ── Form body ── */
.form-body { padding: 32px 36px 36px; }

/* ── Section ── */
.section { margin-bottom: 28px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-header .s-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.section-header h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--red);
}
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ffd5d3;
}

/* ── Fields ── */
.field { margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

input[type=text], select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--dark);
  background: #fff;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
}
input[type=text]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,61,51,.1);
}
input[readonly] {
  background: #fafafa;
  color: #aaa;
  cursor: default;
  border-color: #eee;
}
input[readonly]:focus { border-color: #eee; box-shadow: none; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
textarea { resize: vertical; min-height: 72px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Billable ── */
.billable-box {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.billable-row {
  display: flex;
  align-items: flex-start;
  padding: 16px 18px;
  gap: 16px;
}
.billable-row + .billable-row { border-top: 1.5px solid var(--border); }
.billable-row input[type=radio] {
  width: 17px; height: 17px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}
.bill-content { flex: 1; }
.bill-label { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.bill-sub   { font-size: 11px; color: #c0392b; font-style: italic; margin-bottom: 9px; }
.bill-content input[type=text] { font-size: 13px; padding: 8px 12px; }

/* ── Amount row ── */
.amount-row { display: flex; gap: 10px; }
.amount-row select { width: 110px; flex-shrink: 0; }
.amount-row input  { flex: 1; }

/* ── Auth line ── */
.auth-line {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 2.4;
  margin-bottom: 18px;
}
.auth-line input[type=text] {
  display: inline-block;
  width: 190px;
  border: none;
  border-bottom: 2px solid #ccc;
  border-radius: 0;
  padding: 2px 6px;
  font-size: 13.5px;
  background: transparent;
  vertical-align: bottom;
  transition: border-color .18s;
}
.auth-line input[type=text]:focus {
  outline: none;
  border-bottom-color: var(--red);
  box-shadow: none;
}

/* ── Ack box ── */
.ack-box {
  background: #fafafa;
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 12.5px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}
.ack-box strong {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

/* ── Submit ── */
.form-footer {
  padding: 0 36px 36px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.submit-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background .2s, transform .1s;
}
.submit-btn:hover   { background: var(--red-dk); }
.submit-btn:active  { transform: scale(.99); }
.submit-note {
  font-size: 12px;
  color: #bbb;
  text-align: center;
  margin-top: 10px;
}
