/* ==============================
   HGC FORM UI (layout like sample)
   Font: Roboto
   ============================== */

/* Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Base */
.hgc-wrap,
.hgc-wrap * {
  box-sizing: border-box;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

.hgc-wrap {
  max-width: 1180px;
  margin: 22px auto;
  padding: 0 14px;
}

.hgc-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 16px 16px 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

/* Header */
.hgc-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: #111;
}

.hgc-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: #4b5563;
}

/* Sections */
.hgc-section {
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  margin-top: 14px;
}

.hgc-section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.hgc-section h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
  color: #111827;
}

/* Grid (like sample) */
.hgc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}

.hgc-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

/* Field */
.hgc-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.hgc-field input,
.hgc-field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 12px 12px;
  font-size: 14px;
  font-weight: 400;
  color: #111;
  background: #f3f4f6; /* light grey like sample */
  outline: none;
}

.hgc-field input::placeholder,
.hgc-field textarea::placeholder {
  color: #9ca3af;
}

.hgc-field input:focus,
.hgc-field textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
  background: #fff;
}

.hgc-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Readonly claim ref */
.hgc-readonly input {
  background: #eef2f7;
  cursor: not-allowed;
}

/* Checkboxes grid (2 columns) */
/* Checkboxes layout (fix full-width GR text) */
.hgc-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hgc-check {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 14px;
  background: #f9fafb;
}

.hgc-check label {
  display: block;
  cursor: pointer;
}

/* first row: checkbox + EN title */
.hgc-check label > input {
  margin-right: 8px;
}

.hgc-check .en {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  vertical-align: middle;
}

/* second row: GR description full width */
.hgc-check .gr {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.4;
}

/* Buttons (orange like sample) */
.hgc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

/* Override WP button styles only inside our form */
.hgc-actions .button,
.hgc-actions .button.button-primary {
  border: 0 !important;
  border-radius: 6px !important;
  padding: 12px 18px !important;
  height: auto !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Export = orange */
.hgc-actions .hgc-export {
  background: #f97316 !important;
  color: #fff !important;
}

.hgc-actions .hgc-export:hover {
  background: #ea580c !important;
}

/* Send = orange (same tone, like sample has both orange buttons) */
.hgc-actions .hgc-send {
  background: #fb923c !important;
  color: #fff !important;
}

.hgc-actions .hgc-send:hover {
  background: #f97316 !important;
}

/* Message bar - hidden by default, shows only on action */
.hgc-msg {
  display: none;              /* IMPORTANT: hide initially */
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 8px;
  background: #eef2ff;
  border: 1px solid #dbeafe;
  color: #1f2937;
  font-size: 13px;
  font-weight: 500;
}

.hgc-msg.is-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}


/* Mobile */
@media (max-width: 980px) {
  .hgc-grid,
  .hgc-grid.two,
  .hgc-checks {
    grid-template-columns: 1fr;
  }

  .hgc-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .hgc-actions .button {
    width: 100%;
    text-align: center;
  }

  .hgc-title {
    font-size: 22px;
  }
}
