/**
 * Public styles for Multistep Form to Google Docs
 */

/* Form Container - Doctor Theme */
.msfb-form-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 16px;
  border: 2px solid #d4d4d8;
  background-position: right top;
  background-repeat: no-repeat;
  background-size: 120px;
}

/* Form Title and Description */
.msfb-form-title {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 24px;
}

.msfb-form-description {
  margin-bottom: 25px;
  color: #666;
  font-size: 16px;
}

/* Progress Indicators */
.msfb-form-progress {
  margin-bottom: 30px;
}

.msfb-steps-indicators {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
  width: 100%;
  overflow-x: auto;
  padding: 20px 0;
  flex-wrap: wrap;
}

.msfb-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  margin: 0;
  position: relative;
  min-width: 100px;
  flex-shrink: 0;
  max-width: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.msfb-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: white;
  color: #d4d4d8;
  font-weight: 500;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 2px solid #d4d4d8;
  font-size: 24px;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.msfb-step-title {
  display: block;
  font-size: 15px;
  color: #666;
  text-align: center;
  line-height: 1.3;
  transition: all 0.3s;
  margin-top: 5px;
  text-align: center;
}

.msfb-step-indicator.active .msfb-step-number {
  background: #1a5fa0;
  color: #1a5fa0;
  border-color: #1a5fa0;
  position: relative;
  color: white;
}

.msfb-step-indicator.active .msfb-step-title {
  color: #066fac;
  font-weight: 400;
}

.msfb-step-indicator.completed .msfb-step-number {
  background: #1a5fa0;
  color: #1a5fa0;
  border-color: #1a5fa0;
  position: relative;
  color: white;
}

/* Hover effects for step indicators */
.msfb-step-indicator:hover .msfb-step-number {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.msfb-step-indicator:hover .msfb-step-title {
  color: #1a5fa0;
  font-weight: 500;
}

/* Hover effects for non-active/completed steps */
.msfb-step-indicator:not(.active):not(.completed):hover .msfb-step-number {
  background: #f0f8ff;
  border-color: #1a5fa0;
  color: #1a5fa0;
}

/* Active step hover effect */
.msfb-step-indicator.active:hover .msfb-step-number {
  background: #0d4a7a;
  border-color: #0d4a7a;
}

/* Completed step hover effect */
.msfb-step-indicator.completed:hover .msfb-step-number {
  background: #0d4a7a;
  border-color: #0d4a7a;
}

/* Add connector lines between steps */
.msfb-step-connector {
  height: 2px;
  background: #d4d4d8;
  width: 10px;
  position: relative;
  top: 22px;
  margin: 0 1px;
  z-index: 1;
}

.msfb-step-connector.active {
  background: #1a5fa0;
  height: 3px;
  box-shadow: 0 1px 2px rgba(26, 95, 160, 0.2);
}

/* Form Step Illustrations */
.msfb-form-step-illustration {
  margin: 30px 0;
  text-align: center;
  display: none;
}

.msfb-form-step-illustration.active {
  display: block;
}

.msfb-illustration-image {
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Form Steps */
.msfb-form-step {
  display: none;
}

/* Step Tip - Medical Theme */
.msfb-step-tip {
  background-color: #e6f1fa;
  border-left: 4px solid rgba(16, 173, 218, 1);
  padding: 20px;
  margin: 25px 0;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.msfb-step-tip:before {
}

.msfb-step-tip strong {
  display: block;
  font-family: Roboto;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: rgba(6, 111, 172, 1);
}

.msfb-step-tip p {
  font-family: Roboto;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  color: rgba(6, 111, 172, 1);
}

.msfb-form-step.active {
  display: block;
}

.msfb-step-content-title {
  margin-top: 0;
  margin-bottom: 15px;
  color: #066fac !important;
  font-size: 20px;
  font-weight: 400;
}

.msfb-step-description {
  margin-bottom: 25px;
  color: #40424b;
  font-size: 14px;
}

/* Form Fields */
.msfb-field-container {
  margin-bottom: 20px;
}

.msfb-field-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.msfb-required {
  color: #f44336;
  margin-left: 3px;
}

.msfb-field {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.msfb-field:focus {
  border-color: #4caf50;
  outline: none;
}

textarea.msfb-field {
  min-height: 100px;
  resize: vertical;
  border: 1px solid #d4d4d8 !important;
  border-radius: 4px !important;
}

/* Radio and Checkbox styles */
.msfb-radio-option,
.msfb-checkbox-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.msfb-radio-option input,
.msfb-checkbox-option input {
  margin-right: 10px;
}

.msfb-radio-option label,
.msfb-checkbox-option label {
  margin-bottom: 0;
  font-weight: normal;
}

/* Error message */
.msfb-field-error {
  color: #f44336;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.msfb-field-container.has-error .msfb-field {
  border-color: #f44336;
}

.msfb-field-container.has-error .msfb-field-error {
  display: block;
}

/* Step buttons */
.msfb-step-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* First step - align Next button to the right */
.msfb-step-buttons.first-step {
  justify-content: flex-end;
}

.msfb-prev-button,
.msfb-next-button,
.msfb-submit-button {
  padding: 10px 20px;
  border: none;
  border-radius: 2px !important;
  font-size: 16px;
  font-weight: 400 !important;
  cursor: pointer;
  background: #066fac;
  padding: 10px 25px !important;
  text-transform: unset !important;
}

.msfb-prev-button {
  background-color: #f5f5f5;
  color: #333;
}

.msfb-next-button,
.msfb-submit-button {
  background-color: #1a5fa0;
  color: white;
  font-weight: 500 !important;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.msfb-prev-button:hover {
  background-color: #e0e0e0;
}

.msfb-next-button:hover,
.msfb-submit-button:hover {
  background-color: #45a049;
}

/* Form messages */
.msfb-form-messages {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  display: none;
}

.msfb-form-messages.success {
  background-color: #dff0d8;
  color: #3c763d;
  display: block;
}

.msfb-form-messages.error {
  background-color: #f2dede;
  color: #a94442;
  display: block;
}

/* Loading spinner */
.msfb-loading {
  position: relative;
  min-height: 60px;
}

.msfb-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4caf50;
  border-radius: 50%;
  animation: msfgd-spin 2s linear infinite;
}

@keyframes msfgd-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive styles */
/* Export options */
.msfb-export-options {
  margin-top: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.msfb-export-options h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
  font-size: 18px;
}

.msfb-export-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.msfb-export-format {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.msfb-export-link {
  display: inline-block;
  padding: 8px 0px;
  color: #066fac;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.msfb-export-status {
  margin-top: 15px;
}

.msfb-success {
  color: #3c763d;
}

.msfb-error {
  color: #a94442;
}

.msfb-download-link {
  display: inline-block;
  margin-top: 5px;
  padding: 8px 15px;
  background-color: #2196f3;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.msfb-download-link:hover {
  background-color: #0b7dda;
}

@media screen and (max-width: 768px) {
  .msfb-form-container {
    padding: 15px;
  }

  .msfb-step-title {
    font-size: 12px;
  }

  .msfb-step-number {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .msfb-steps-indicators::before {
    top: 25px;
  }

  .msfb-step-connector {
    width: 20px;
    top: 25px;
  }
}

@media screen and (max-width: 600px) {
  .msfb-step-title {
  }
  .msfb-steps-indicators {
    display: none;
  }
  .msfb-steps-indicators::before {
    top: 15px;
  }
  .msfb-step-indicator {
    min-width: unset;
    padding: 5px;
  }
  .msfb-step-number {
    width: 35px;
    height: 35px;
    font-size: 16px;
    margin-bottom: 5px;
    display: none;
  }

  .msfb-step-connector {
    display: none !important;
  }

  .msfb-step-buttons,
  .msfb-step-buttons.first-step {
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
  }

  .msfb-prev-button,
  .msfb-next-button,
  .msfb-submit-button {
    width: 100%;
  }

  .msfb-export-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Accordion Form Styles */

.msfb-accordion-sections {
  margin-bottom: 0;
}

.msfb-accordion-section {
  margin-bottom: 0;

  border: none;

  overflow: hidden;
}

.msfb-accordion-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 15px 20px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.3);

  cursor: pointer;

  position: relative;
}

.msfb-accordion-header:hover {
  background-color: #d0e7f7;
}

.msfb-section-title {
  margin: 0;

  color: #093350 !important;

  font-size: 18px;

  font-weight: 400 !important;

  width: 100%;

  border-top: 1px solid #d4d4d8;

  border-top: 1px solid rgba(0, 0, 0, 0.2);

  padding-top: 20px;
}

.msfb-accordion-toggle {
  width: 24px;

  height: 24px;

  position: relative;
}

.msfb-accordion-toggle:before,
.msfb-accordion-toggle:after {
  content: "";

  position: absolute;

  background-color: #066fac;

  transition: transform 0.3s ease;
}

.msfb-accordion-toggle:before {
  width: 2px;

  height: 16px;

  top: 4px;

  left: 11px;
}

.msfb-accordion-toggle:after {
  width: 16px;

  height: 2px;

  top: 11px;

  left: 4px;
}

.msfb-accordion-section.active .msfb-accordion-toggle:before {
  opacity: 0;
}

.msfb-accordion-content {
  display: none;

  padding: 20px;

  background-color: #edf5fe;
}

.msfb-accordion-section.active .msfb-accordion-content {
  display: block;
}

.msfb-section-description {
  margin-bottom: 25px;

  color: #224862;

  font-size: 14px;
}

.msfb-section-tip {
  background-color: #edf5fe;

  border-left: 4px solid #1a5fa0;

  padding: 20px;

  margin: 25px 0;

  border-radius: 6px;

  position: relative;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.msfb-section-tip:before {
  content: "💡";

  position: absolute;

  left: 10px;

  top: 15px;

  font-size: 18px;
}

.msfb-section-tip strong {
  display: block;

  color: #1a5fa0;

  margin-bottom: 10px;

  font-size: 16px;

  font-weight: 600;

  margin-left: 25px;
}

.msfb-section-tip p {
  margin: 0 0 0 25px;

  color: #333;

  line-height: 1.8;

  font-size: 14px;
}

.msfb-form-buttons {
  margin-top: 30px;

  display: flex;

  justify-content: flex-end;
}

.accordion-form .msfb-form-buttons {
  padding: 20px;
}

.msfb-no-sections-message {
  padding: 30px;

  background-color: #f9f9f9;

  border: 1px solid #ddd;

  border-radius: 8px;

  text-align: center;
}

.msfb-no-sections-message p {
  color: #666;

  font-size: 16px;

  margin: 0;
}

/* Accordion Form Container */

.msfb-form-container.accordion-form {
  border: none;

  border-radius: 8px;

  padding: 0;

  overflow: hidden;
}

.msfb-accordion-sections {
  background-color: #edf5fe;
}

.msfb-form-container.accordion-form .msfb-form-header {
  padding: 20px 20px 10px;

  background-color: #edf5fe;
}

.msfb-form-container.accordion-form .msfb-form-title {
  color: #066fac;

  margin-top: 0;
}

.msfb-form-container.accordion-form .msfb-form-description {
  color: #40424b;
}

.msfb-step-indicator.completed .msfb-step-number:after {
}

/* Export container for accordion forms */

.accordion-form .msfb-export-container {
  padding: 0 20px 20px;
}

/* Google Doc Template Link Styles */
.link-google {
  display: inline-block;
  padding: 8px 0px;
  color: #066fac;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hide Google Doc link on mobile devices */
@media (max-width: 768px) {
}
