/* ═══════════════════════════════════════════════════════════
   OGIS Testimonial Consent Form — Scoped Plugin Styles
   All rules are nested under .ogis-tcf-wrap to prevent
   WordPress theme conflicts and overrides.
═══════════════════════════════════════════════════════════ */

/* ── Reset inside wrapper ── */
.ogis-tcf-wrap,
.ogis-tcf-wrap *,
.ogis-tcf-wrap *::before,
.ogis-tcf-wrap *::after {
  box-sizing: border-box;
}

/* ── Wrapper ── */
.ogis-tcf-wrap {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1e2a38;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ════════════════════════
   HEADER
════════════════════════ */
.ogis-tcf-wrap .ogis-header {
  background: #1a3c6e;
  color: #fff;
  border-radius: 8px 8px 0 0;
  padding: 36px 40px 28px;
  position: relative;
  overflow: hidden;
}
.ogis-tcf-wrap .ogis-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: #e8a020;
}
.ogis-tcf-wrap .ogis-header .ogis-logo-area {
  margin-bottom: 14px;
}
.ogis-tcf-wrap .ogis-badge {
  background: #e8a020;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.4;
  text-decoration: none;
}
.ogis-tcf-wrap .ogis-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
  padding: 0;
  color: #fff;
  border: none;
  background: none;
}
.ogis-tcf-wrap .ogis-subtitle {
  font-size: .85rem;
  opacity: .85;
  margin: 0;
  color: #fff;
}

/* ════════════════════════
   CARD
════════════════════════ */
.ogis-tcf-wrap .ogis-card {
  background: #fff;
  border: 1px solid #cdd6e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 36px 40px 44px;
}

.ogis-tcf-wrap .ogis-intro {
  background: #f4f7fb;
  border-left: 4px solid #e8a020;
  padding: 14px 18px!important;
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
  color: #5a6b7d;
  margin: 0 0 32px;
  line-height: 1.6;
}
.ogis-tcf-wrap .ogis-intro strong {
  color: #1e2a38;
  font-weight: 700;
}

/* ════════════════════════
   SECTIONS
════════════════════════ */
.ogis-tcf-wrap .ogis-section {
  margin-bottom: 36px;
}
.ogis-tcf-wrap .ogis-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a3c6e;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f4f7fb;
  border-top: none;
  border-left: none;
  border-right: none;
  background: none;
}
.ogis-tcf-wrap .ogis-num {
  background: #1a3c6e;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1;
}

/* ════════════════════════
   GRID
════════════════════════ */
.ogis-tcf-wrap .ogis-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) {
  .ogis-tcf-wrap .ogis-grid-2 { grid-template-columns: 1fr; }
  .ogis-tcf-wrap .ogis-card   { padding-left: 18px; padding-right: 18px; }
  .ogis-tcf-wrap .ogis-header { padding-left: 18px; padding-right: 18px; }
}

/* ════════════════════════
   FIELDS
════════════════════════ */
.ogis-tcf-wrap .ogis-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ogis-tcf-wrap .ogis-field label {
  font-size: .82rem;
  font-weight: 600;
  color: #5a6b7d;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  margin-bottom: 0;
  cursor: default;
}
.ogis-tcf-wrap .ogis-field .req {
  color: #c0392b;
  margin-left: 2px;
}
.ogis-tcf-wrap .ogis-field input[type="text"],
.ogis-tcf-wrap .ogis-field input[type="email"],
.ogis-tcf-wrap .ogis-field input[type="tel"],
.ogis-tcf-wrap .ogis-field input[type="date"],
.ogis-tcf-wrap .ogis-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cdd6e0;
  border-radius: 8px;
  font-size: .95rem;
  color: #1e2a38;
  background: #fff;
  font-family: inherit;
  outline: none;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.ogis-tcf-wrap .ogis-field input[type="text"]:focus,
.ogis-tcf-wrap .ogis-field input[type="email"]:focus,
.ogis-tcf-wrap .ogis-field input[type="tel"]:focus,
.ogis-tcf-wrap .ogis-field input[type="date"]:focus,
.ogis-tcf-wrap .ogis-field textarea:focus {
  border-color: #1a3c6e;
  box-shadow: 0 0 0 3px rgba(26,60,110,.12);
  outline: none;
}
.ogis-tcf-wrap .ogis-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}
.ogis-tcf-wrap .ogis-err {
  font-size: .78rem;
  color: #c0392b;
  display: none;
  margin-top: 2px;
}
.ogis-tcf-wrap .ogis-field input.ogis-invalid ~ .ogis-err,
.ogis-tcf-wrap .ogis-field textarea.ogis-invalid ~ .ogis-err {
  display: block;
}
.ogis-tcf-wrap .ogis-field input.ogis-invalid,
.ogis-tcf-wrap .ogis-field textarea.ogis-invalid {
  border-color: #c0392b;
}
.ogis-tcf-wrap .ogis-muted-sm {
  font-size: .88rem;
  color: #5a6b7d;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ════════════════════════
   CONSENT CHECKBOXES
════════════════════════ */
.ogis-tcf-wrap .ogis-consent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ogis-tcf-wrap .ogis-consent-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f4f7fb;
  border: 1.5px solid #cdd6e0;
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin: 0;
  width: 100%;
}
.ogis-tcf-wrap .ogis-consent-item:has(input:checked) {
  border-color: #1a3c6e;
  background: #eef3fa;
}
.ogis-tcf-wrap .ogis-consent-item input[type="checkbox"] {
  margin-top: 2px;
  margin-right: 0;
  accent-color: #1a3c6e;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 3px;
}
.ogis-tcf-wrap .ogis-ci-body {
  flex: 1;
}
.ogis-tcf-wrap .ogis-ci-title {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 3px;
  color: #1e2a38;
  display: block;
}
.ogis-tcf-wrap .ogis-ci-desc {
  font-size: .85rem;
  color: #5a6b7d;
  line-height: 1.5;
  display: block;
}

/* ════════════════════════
   LOGO UPLOAD
════════════════════════ */
.ogis-tcf-wrap .ogis-upload-zone {
  border: 2px dashed #cdd6e0;
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
  background: #fff;
}
.ogis-tcf-wrap .ogis-upload-zone:hover,
.ogis-tcf-wrap .ogis-upload-zone.ogis-drag-over {
  border-color: #1a3c6e;
  background: #eef3fa;
}
.ogis-tcf-wrap .ogis-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.ogis-tcf-wrap .ogis-upload-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  display: block;
}
.ogis-tcf-wrap .ogis-upload-label {
  font-size: .9rem;
  color: #5a6b7d;
  display: block;
}
.ogis-tcf-wrap .ogis-upload-label strong {
  color: #1a3c6e;
  font-weight: 700;
}
.ogis-tcf-wrap .ogis-upload-hint {
  font-size: .78rem;
  color: #5a6b7d;
  margin-top: 4px;
  display: block;
}
.ogis-tcf-wrap .ogis-logo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  background: #f4f7fb;
  border: 1px solid #cdd6e0;
  border-radius: 8px;
  padding: 10px 14px;
}
.ogis-tcf-wrap .ogis-logo-preview img {
  max-height: 60px;
  max-width: 160px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.ogis-tcf-wrap .ogis-logo-name {
  font-size: .85rem;
  color: #1e2a38;
  flex: 1;
  word-break: break-all;
}
.ogis-tcf-wrap .ogis-remove-logo {
  background: none;
  border: none;
  cursor: pointer;
  color: #c0392b;
  font-size: 1.1rem;
  padding: 2px 6px;
  line-height: 1;
}

/* ════════════════════════
   TERMS BOX
════════════════════════ */
.ogis-tcf-wrap .ogis-terms-box {
  background: #f4f7fb;
  border: 1.5px solid #cdd6e0;
  border-radius: 8px;
  padding: 20px 22px;
  font-size: .87rem;
  line-height: 1.7;
  color: #1e2a38;
  max-height: 260px;
  overflow-y: auto;
}
.ogis-tcf-wrap .ogis-terms-box h4 {
  font-weight: 700;
  margin: 12px 0 4px;
  padding: 0;
  color: #1a3c6e;
  font-size: .9rem;
  text-transform: none;
  letter-spacing: 0;
  border: none;
  background: none;
}
.ogis-tcf-wrap .ogis-terms-box h4:first-child {
  margin-top: 0;
}
.ogis-tcf-wrap .ogis-terms-box p {
  margin-bottom: 8px;
  margin-top: 0;
  padding: 0;
  color: #1e2a38;
}

/* ════════════════════════
   SIGNATURE
════════════════════════ */
.ogis-tcf-wrap .ogis-sig-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
@media (max-width: 600px) {
  .ogis-tcf-wrap .ogis-sig-wrapper { grid-template-columns: 1fr; }
  .ogis-tcf-wrap .ogis-sig-divider { display: none; }
}
.ogis-tcf-wrap .ogis-sig-canvas-wrap {
  display: flex;
  flex-direction: column;
}
.ogis-tcf-wrap .ogis-sig-label {
  font-size: .82rem;
  font-weight: 600;
  color: #5a6b7d;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  margin-bottom: 5px;
}
.ogis-tcf-wrap #ogis-sig-pad {
  border: 1.5px solid #cdd6e0;
  border-radius: 8px;
  cursor: crosshair;
  touch-action: none;
  width: 100%;
  background: #fff;
  display: block;
}
.ogis-tcf-wrap .ogis-sig-divider {
  font-size: .75rem;
  color: #5a6b7d;
  text-align: center;
  padding-bottom: 10px;
}
.ogis-tcf-wrap .ogis-sig-actions {
  margin-top: 6px;
}
.ogis-tcf-wrap .ogis-btn-clear {
  font-size: .78rem;
  padding: 4px 12px;
  border: 1px solid #cdd6e0;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  color: #5a6b7d;
  transition: border-color .2s, color .2s;
  display: inline-block;
}
.ogis-tcf-wrap .ogis-btn-clear:hover {
  border-color: #c0392b;
  color: #c0392b;
}

/* ════════════════════════
   PRIVACY NOTICE
════════════════════════ */
.ogis-tcf-wrap .ogis-privacy-notice {
  background: #fffbf0;
  border: 1.5px solid #f0d080;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .82rem;
  color: #5a4a00;
  line-height: 1.6;
  margin-bottom: 28px;
}
.ogis-tcf-wrap .ogis-privacy-notice strong {
  font-weight: 700;
  color: #5a4a00;
}

/* ════════════════════════
   ALERTS
════════════════════════ */
.ogis-tcf-wrap .ogis-alert {
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: .9rem;
  line-height: 1.5;
  display: block;
}
.ogis-tcf-wrap .ogis-alert-success {
  background: #eafaf1;
  border: 1.5px solid #a9dfbf;
  color: #1e6b40;
}
.ogis-tcf-wrap .ogis-alert-error {
  background: #fdf0ef;
  border: 1.5px solid #f5b7b1;
  color: #c0392b;
}

/* ════════════════════════
   BUTTONS
════════════════════════ */
.ogis-tcf-wrap .ogis-submit-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.ogis-tcf-wrap .ogis-btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}
.ogis-tcf-wrap .ogis-btn:active {
  transform: scale(.98);
}
.ogis-tcf-wrap .ogis-btn-secondary {
  background: #fff;
  border: 1.5px solid #cdd6e0;
  color: #5a6b7d;
}
.ogis-tcf-wrap .ogis-btn-secondary:hover {
  background: #f4f7fb;
  color: #5a6b7d;
  text-decoration: none;
}
.ogis-tcf-wrap .ogis-btn-primary {
  background: #1a3c6e;
  color: #fff;
  border: none;
}
.ogis-tcf-wrap .ogis-btn-primary:hover {
  opacity: .9;
  color: #fff;
  text-decoration: none;
}
.ogis-tcf-wrap .ogis-btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ════════════════════════
   V2 — SUCCESS / ERROR BANNERS
════════════════════════ */
.ogis-tcf-wrap .ogis-success {
  background: #eafaf1;
  border: 1.5px solid #a9dfbf;
  border-radius: 8px;
  color: #1e6b40;
  padding: 14px 18px;
  font-size: .93rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
.ogis-tcf-wrap .ogis-error {
  background: #fdf0ef;
  border: 1.5px solid #f5b7b1;
  border-radius: 8px;
  color: #c0392b;
  padding: 14px 18px;
  font-size: .93rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ════════════════════════
   V2 — CONSENT BLOCK
════════════════════════ */
.ogis-tcf-wrap .ogis-consent-block {
  background: #f4f7fb;
  border: 1.5px solid #cdd6e0;
  border-radius: 8px;
  padding: 18px 20px;
}
.ogis-tcf-wrap .ogis-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: .93rem;
  color: #1e2a38;
  line-height: 1.6;
}
.ogis-tcf-wrap .ogis-consent-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  accent-color: #1a3c6e;
  cursor: pointer;
}
.ogis-tcf-wrap .ogis-consent-label .req {
  color: #c0392b;
  font-weight: 700;
  margin-left: 2px;
}
.ogis-tcf-wrap .ogis-consent-block .ogis-err {
  display: none;
  margin-top: 8px;
  font-size: .82rem;
  color: #c0392b;
}

/* ════════════════════════
   V2 — ACTIONS ROW
════════════════════════ */
.ogis-tcf-wrap .ogis-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}
.ogis-tcf-wrap .ogis-actions .ogis-btn-primary {
  padding: 13px 36px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
