/* ============================================
   FCS Contact Form Styling
   Paste into: Webform > Settings > Assets > CSS
   ============================================ */

/* ===== Variables ===== */
.webform-submission-form {
  --fcs-primary: #0066ff;
  --fcs-dark: #0a1628;
  --fcs-soft: #f4f7fb;
  --fcs-border: #e3eaf2;
}

/* ===== Wizard Progress Bar ===== */
.webform-submission-form .webform-progress {
  margin-bottom: 2rem;
}

.webform-submission-form .webform-progress-bar__progress {
  background: linear-gradient(90deg, var(--fcs-primary) 0%, #00b4ff 100%) !important;
  border-radius: 50px;
}

.webform-submission-form .webform-progress-bar__page--current .webform-progress-bar__page-title {
  font-weight: 700;
  color: var(--fcs-primary);
}

/* ===== Intro Page Styling ===== */
.fcs-intro {
  background: #fff;
  border: 1px solid var(--fcs-border);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.04);
}

/* Intro video block */
.fcs-intro-video {
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.fcs-intro-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 8px 25px rgba(10, 22, 40, 0.15);
}

.fcs-intro-video-caption {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #5a6c80;
  font-weight: 500;
}

.fcs-intro-video-caption i {
  color: var(--fcs-primary);
  margin-right: 0.35rem;
}

.fcs-intro-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fcs-primary) 0%, #00b4ff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
}

.fcs-intro h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fcs-dark);
  margin-bottom: 0.75rem;
}

.fcs-intro > p {
  color: #5a6c80;
  margin-bottom: 1.25rem;
}

.fcs-intro-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.fcs-intro-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--fcs-border);
  color: var(--fcs-dark);
}

.fcs-intro-list li:last-child { border-bottom: none; }

.fcs-intro-list li i {
  color: var(--fcs-primary);
  width: 24px;
  margin-right: 0.5rem;
}

.fcs-intro-help {
  background: #fff8e1;
  border-left: 4px solid #ffd60a;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  gap: 0.85rem;
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}

.fcs-intro-help > i {
  color: #b8860b;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.fcs-intro-help p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #4a4030;
}

.fcs-intro-help a {
  color: var(--fcs-primary);
  font-weight: 600;
  text-decoration: none;
}

/* ===== Side-by-side row layout ===== */
.webform-submission-form .fcs-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.webform-submission-form .fcs-col {
  flex: 1 1 200px;
  min-width: 0;
}

/* ===== Sections ===== */
.webform-submission-form .webform-section {
  background: #fff;
  border: 1px solid var(--fcs-border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.04);
}

.webform-submission-form .webform-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fcs-dark);
  margin-bottom: 0.35rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--fcs-soft);
}

.webform-submission-form .webform-section-description {
  color: #5a6c80;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ===== Form fields ===== */
.webform-submission-form label {
  font-weight: 600;
  color: var(--fcs-dark);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.webform-submission-form .form-control,
.webform-submission-form input[type="text"],
.webform-submission-form input[type="email"],
.webform-submission-form input[type="tel"],
.webform-submission-form textarea,
.webform-submission-form select {
  border: 1.5px solid var(--fcs-border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.webform-submission-form .form-control:focus,
.webform-submission-form input:focus,
.webform-submission-form textarea:focus,
.webform-submission-form select:focus {
  border-color: var(--fcs-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
  outline: none;
}

/* ===== Help tooltip icon ===== */
.webform-submission-form .webform-element-help {
  background: var(--fcs-primary);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.4rem;
  border: none;
  cursor: pointer;
  vertical-align: middle;
  text-decoration: none;
}

.webform-submission-form .webform-element-help:hover {
  background: var(--fcs-dark);
}

/* Ensure the tooltip popup sits above other content */
.ui-dialog.webform-element-help-dialog,
.ui-tooltip.webform-element-help {
  z-index: 9999 !important;
  max-width: 320px;
  background: var(--fcs-dark);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: none;
}

/* ===== Photo upload area ===== */
.webform-submission-form .form-managed-file,
.webform-submission-form .js-form-managed-file {
  border: 2px dashed var(--fcs-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  background: var(--fcs-soft);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.webform-submission-form .form-managed-file:hover {
  border-color: var(--fcs-primary);
  background: #fff;
}

.webform-submission-form .file-placeholder {
  color: #5a6c80;
}

.webform-submission-form .file-placeholder i {
  color: var(--fcs-primary);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* ===== Buttons ===== */
.webform-submission-form .webform-button--submit,
.webform-submission-form .webform-button--next {
  background: linear-gradient(135deg, var(--fcs-primary) 0%, #0080ff 100%);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.webform-submission-form .webform-button--submit:hover,
.webform-submission-form .webform-button--next:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.4);
}

.webform-submission-form .webform-button--previous {
  background: #fff;
  color: var(--fcs-primary);
  border: 2px solid var(--fcs-primary);
  padding: 0.7rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.webform-submission-form .webform-button--previous:hover {
  background: var(--fcs-primary);
  color: #fff;
}

/* Required asterisk */
.webform-submission-form .form-required::after {
  color: #ff3b3b;
}

/* ===== Mobile responsive ===== */
@media (max-width: 600px) {
  .webform-submission-form .fcs-row { gap: 0; }
  .webform-submission-form .fcs-col { flex: 1 1 100%; }
  .webform-submission-form .webform-section { padding: 1.25rem; }
  .fcs-intro { padding: 1.5rem 1rem; }
  .fcs-intro-help { flex-direction: column; }
  .webform-submission-form .webform-button--submit,
  .webform-submission-form .webform-button--next,
  .webform-submission-form .webform-button--previous {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}