/* ====================================================
   GENBOOT IDEA CALL FORM — gbidea-form.css
   Fully namespaced (gbidea-) — no conflict with the
   Genboot Contact Form plugin.
   ==================================================== */

/* ---------- Variables ---------- */
.gbidea-overlay,
.gbidea-open-btn {
  --gb-green:   #28c45e;
  --gb-green-d: #1fa84e;
  --gb-dark:    #0d0f14;
  --gb-overlay: rgba(0,0,0,0.72);
  --gb-radius:  14px;
  --gb-font:    'Inter', system-ui, sans-serif;
  --gb-border:  #e2e6ea;
  --gb-text:    #1a1d23;
  --gb-muted:   #6b7280;
  --gb-error:   #e53e3e;
}

/* ---------- Trigger Button (shortcode) ---------- */
.gbidea-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gb-green);
  color: #fff;
  font-family: var(--gb-font);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: .3px;
  transition: background .2s, transform .15s;
}
.gbidea-open-btn:hover {
  background: var(--gb-green-d);
  transform: translateY(-1px);
}

/* ---------- Overlay ---------- */
.gbidea-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--gb-overlay);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gbidea-overlay.gbidea-visible {
  display: flex;
  animation: gbideaFadeIn .25s ease;
}
@keyframes gbideaFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Modal ---------- */
.gbidea-modal {
  display: flex;
  width: 100%;
  max-width: 860px;
  min-height: 540px;
  background: #fff;
  border-radius: var(--gb-radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
  animation: gbideaSlideUp .3s cubic-bezier(.22,1,.36,1);
}
@keyframes gbideaSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ---------- Close Button ---------- */
.gbidea-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background .2s;
}
.gbidea-close:hover { background: rgba(255,255,255,.3); }

/* ---------- Left Panel ---------- */
.gbidea-left {
  flex: 0 0 42%;
  background: linear-gradient(155deg, #0d2e1a 0%, #0f3d22 50%, #10200e 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.gbidea-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(40,196,94,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,196,94,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.gbidea-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(40,196,94,.18) 0%, transparent 65%);
}
.gbidea-left-inner {
  position: relative;
  z-index: 2;
  padding: 48px 36px;
  color: #fff;
}
.gbidea-badge {
  display: inline-block;
  background: rgba(40,196,94,.2);
  border: 1px solid rgba(40,196,94,.4);
  color: var(--gb-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-family: var(--gb-font);
}
.gbidea-left-inner h2 {
  font-family: var(--gb-font);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 12px;
}
.gbidea-left-inner h2 span { color: var(--gb-green); }
.gbidea-left-inner > p {
  color: rgba(255,255,255,.6);
  font-family: var(--gb-font);
  font-size: 15px;
  margin: 0 0 28px;
}
.gbidea-features {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.gbidea-features li {
  font-family: var(--gb-font);
  font-size: 14px;
  color: rgba(255,255,255,.82);
  display: flex; align-items: center; gap: 8px;
}
.gbidea-features li::before { display: none; }

/* ---------- Right Panel ---------- */
.gbidea-right {
  flex: 1;
  padding: 40px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gbidea-form-header { margin-bottom: 24px; }
.gbidea-form-header h3 {
  font-family: var(--gb-font);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--gb-text);
  margin: 0 0 6px;
}
.gbidea-form-header h3 span { color: var(--gb-green); }
.gbidea-form-header p {
  font-family: var(--gb-font);
  font-size: 14px;
  color: var(--gb-muted);
  margin: 0;
}

/* ---------- Form Fields ---------- */
#gbideaForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gbidea-field {
  position: relative;
  display: flex;
  flex-direction: column;
}
.gbidea-field input,
.gbidea-field textarea,
.gbidea-field select {
  font-family: var(--gb-font);
  font-size: 14.5px;
  color: var(--gb-text);
  background: #fff;
  border: 1.5px solid var(--gb-border);
  border-radius: 9px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}
.gbidea-field input::placeholder,
.gbidea-field textarea::placeholder {
  color: #9ca3af;
}
.gbidea-field input:focus,
.gbidea-field textarea:focus,
.gbidea-field select:focus {
  border-color: var(--gb-green);
  box-shadow: 0 0 0 3px rgba(40,196,94,.12);
}
.gbidea-field.gbidea-has-error input,
.gbidea-field.gbidea-has-error textarea,
.gbidea-field.gbidea-has-error select {
  border-color: var(--gb-error);
}

/* Validation error text */
.gbidea-err {
  display: none;
  font-family: var(--gb-font);
  font-size: 12px;
  color: var(--gb-error);
  margin-top: 4px;
}
.gbidea-field.gbidea-has-error .gbidea-err { display: block; }

/* ---------- Phone Row ---------- */
.gbidea-phone-row {
  display: flex;
  gap: 10px;
}
.gbidea-phone-row input { flex: 1; }

.gbidea-select-wrap {
  position: relative;
  flex: 0 0 110px;
}
.gbidea-select-wrap select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  border: none;
}
.gbidea-select-display {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--gb-border);
  border-radius: 9px;
  padding: 13px 10px;
  font-family: var(--gb-font);
  font-size: 14px;
  color: var(--gb-text);
  pointer-events: none;
  white-space: nowrap;
  height: 100%;
  box-sizing: border-box;
  transition: border-color .2s;
}
.gbidea-select-wrap:focus-within .gbidea-select-display {
  border-color: var(--gb-green);
  box-shadow: 0 0 0 3px rgba(40,196,94,.12);
}
.gbidea-chevron {
  width: 10px; height: 6px;
  margin-left: auto;
  opacity: .5;
}

/* ---------- Timeline (plain) Select ---------- */
.gbidea-plain-select-wrap {
  position: relative;
  display: flex;
}
.gbidea-plain-select-wrap select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 38px;
}
/* Style the placeholder option state (disabled selected) */
.gbidea-plain-select-wrap select:invalid,
.gbidea-plain-select-wrap select option[value=""] {
  color: #9ca3af;
}
.gbidea-chevron-static {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .55;
}

/* ---------- Submit Button ---------- */
.gbidea-submit {
  background: var(--gb-green);
  color: #fff;
  font-family: var(--gb-font);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  padding: 15px;
  cursor: pointer;
  letter-spacing: .3px;
  transition: background .2s, transform .15s, box-shadow .2s;
  margin-top: 4px;
}
.gbidea-submit:hover:not(:disabled) {
  background: var(--gb-green-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(40,196,94,.35);
}
.gbidea-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* ---------- Success / Error messages ---------- */
.gbidea-success,
.gbidea-error {
  font-family: var(--gb-font);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 9px;
  text-align: center;
  margin-top: 4px;
}
.gbidea-success { background: #f0faf4; color: #166534; border: 1px solid #bbf7d0; }
.gbidea-error   { background: #fff5f5; color: #9b1c1c; border: 1px solid #fed7d7; }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .gbidea-modal {
    flex-direction: column;
    max-height: 94vh;
    overflow-y: auto;
  }
  .gbidea-left {
    flex: none;
    min-height: 160px;
  }
  .gbidea-left-inner { padding: 28px 24px; }
  .gbidea-features { display: none; }
  .gbidea-right { padding: 24px 20px; }
  .gbidea-close { color: #fff; }
}
