@import url("https://fonts.googleapis.com/css2?family=Satoshi:wght@400;600&display=swap");

:root {
  --satoshi-switch: "Satoshi", sans-serif;
}

:root {
  --f3-grey: #f3f3f3;
}

* {
  box-sizing: border-box;
}

.join-form {
  padding: 50px 8%;
}

.form {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-bottom: 60px;
  max-width: 810px;
  margin: 0 auto 15px;
}

.form-header {
  margin-bottom: 25px;
  color: #000;
  font-size: 43px;
  text-align: center;
  line-height: 49px;
  font-family: var(--satoshi-switch);
}

.registration-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 15px;
  font-size: 21px;
  line-height: 28px;
  font-weight: 400;
  text-align: center;
  font-family: var(--satoshi-switch);
}

.form-select {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 6px;
  line-height: 50px;
  color: #000000;
  background-color: #fff;
  line-height: 20px;
  margin-left: 0;
  padding-left: 15px;
  padding-right: 0;
  display: block;
  padding: 12px 12px;
  font-size: 14px;
  border-color: #000;
}

h1 {
  margin: 0.67em 0;
  display: block;
}

.name-inputs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 15px;
}

.form-input {
  border: 1px solid black;
  border-radius: 6px;
  height: 50px;
  display: block;
  padding: 8px 12px;
  line-height: 1.42857143;
  background: #fff;
  color: #333333;
  font-size: 16px;
  font-family: var(--satoshi-switch);
}

.gender-selection {
  width: 100%;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gender-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 70px;
  padding: 8px;
  border: 1px solid #000;
  border-radius: 6px;
  cursor: pointer;
}

.gender-option:hover {
  border-color: #007bff;
}

.gender-input input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin-left: 0;
  margin-top: 15px;
  line-height: normal;
}

.gender-input {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

.gender-label {
  font-family: var(--satoshi-switch);
  color: #000;
  font-size: 15px;
  font-weight: 700;
}

.gender-icon {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.consent-notice {
  width: 100%;
  height: auto;
  margin-bottom: 40px;
  display: block;
  background-color: var(--f3-grey);
  text-align: center;
  border-radius: 9px;
  padding: 13px;
}

.consent-checkbox {
  display: flex;
  gap: 15px;
  align-items: center;
}

.consent-text {
  font-size: 12px;
  font-family: var(--satoshi-switch);
  color: #000;
  text-align: left;
  cursor: pointer;
  font-weight: normal;
  line-height: 1.4;
}

.consent-checkbox input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin-left: 0;
  margin-bottom: 0;
}

.form-description {
  margin-bottom: 15px;
  font-family: var(--satoshi-switch);
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  width: 100%;
  color: #666;
}

.text-consent-options {
  align-items: center;
  justify-content: space-between;
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}

.consent-option {
  width: 100%;
  height: 57px;
  border: 1px solid #000;
  border-radius: 6px;
  padding: 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.consent-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.consent-option:hover {
  border-color: #007bff;
}

.consent-input input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin-left: 0;
  margin-top: 15px;
  line-height: normal;
}

.consent-label {
  font-family: var(--satoshi-switch);
  color: #000;
  font-weight: 700;
  display: inline-block;
  cursor: pointer;
  font-size: 15px;
}

.sms-consent-notice {
  width: 100%;
  height: auto;
  background-color: var(--f3-grey);
  text-align: center;
  border-radius: 9px;
  padding: 13px;
  margin-top: 15px;
  margin-bottom: 55px;
}

.sms-consent-checkbox {
  display: flex;
  align-items: center;
}

.sms-consent-text {
  font-size: 12px;
  color: #000;
  text-align: left;
  cursor: pointer;
  margin-left: 15px;
  line-height: 15px;
}

.sms-consent-checkbox input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin-left: 0px;
  margin-bottom: 40px;
}

.submit-btn {
  width: 100%;
  height: 60px;
  background-color: #5db3d6;
  color: #fff;
  border-radius: 9px;
  padding: 17px;
  font-size: 18px;
  line-height: 26px;
  display: block;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: var(--satoshi-switch);
  font-weight: 600;
}

.submit-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Multi-step form styles */
.form-section {
  display: none;
  width: 100%;
}

.form-section.active {
  display: block;
}

/* Progress indicator styles */
.progress-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  width: 100%;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  font-family: var(--satoshi-switch);
  transition: all 0.3s ease;
}

.progress-step.active {
  background-color: #5db3d6;
  color: #fff;
}

.progress-step.completed {
  background-color: #5db3d6;
  color: #fff;
}

.progress-line {
  width: 60px;
  height: 2px;
  background-color: #e0e0e0;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.progress-line.completed {
  background-color: #5db3d6;
}

/* Button state changes */
.submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Form validation styles */
.form-input.error,
.form-select.error {
  border-color: #f44336;
  box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.error-message {
  color: #f44336;
  font-size: 14px;
  margin-top: 5px;
  font-family: var(--satoshi-switch);
}

/* Form errors container below the button */
.form-errors {
  margin-top: 15px;
  text-align: center;
}

.form-errors .error-message {
  color: #f44336;
  font-size: 14px;
  margin: 5px 0;
  font-family: var(--satoshi-switch);
  display: block;
}

/* Gender selection error state */
.gender-option.error {
  border-color: #f44336;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

/* Text consent options error state */
.consent-option.error {
  border-color: #f44336;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

/* Date of birth input styles */
.dob-inputs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 40px;
}

.dob-select {
  flex: 1;
  margin-bottom: 0;
}

.dob-input {
  flex: 1;
  margin-bottom: 0;
  text-align: center;
}

.dob-input::placeholder {
  text-align: center;
}

/* Height and weight input styles */
.height-weight-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.height-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.weight-input {
  display: flex;
  justify-content: center;
}

.input-with-label {
  /* width: 400px; */
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.height-input {
  width: 180px;
  text-align: center;
  margin-bottom: 0;
}

.weight-input {
  width: 400px;
  text-align: center;
  margin: 0 auto;
}

.input-label {
  font-family: var(--satoshi-switch);
  font-size: 14px;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
}

/* Desired weight input styles */
.desired-weight-input {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.desired-weight-input-field {
  width: 400px;
  text-align: center;
  margin-bottom: 0;
}

/* Back button styles */
.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  background-color: #f8f9fa;
  color: #333;
  border: 2px solid #e9ecef;
  border-radius: 9px;
  font-size: 18px;
  line-height: 26px;
  cursor: pointer;
  font-family: var(--satoshi-switch);
  font-weight: 600;
  transition: all 0.3s ease;
  /* margin-right: 15px; */
}
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled),
button:not(:disabled) {
  margin: 0 !important;
}

.back-btn:hover {
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.back-btn:active {
  background-color: #dee2e6;
  transform: translateY(1px);
}

.back-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transform: rotate(180deg);
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 35px;
}

/* Medication Question Styles */
.medication-question-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

.medication-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.medication-option:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
}

.medication-option.error {
  border-color: #f44336;
  box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.medication-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-radio {
  width: 18px;
  height: 18px;
  margin: 0;
}

.medication-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Section 6 - Medication Content Styles */
.medication-content {
  padding: 20px 0;
}

/* Recommendation Header */
.recommendation-header {
  text-align: center;
  margin-bottom: 30px;
}

.recommendation-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.doctor-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.doctor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.doctor-message {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.instruction-text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

/* Medication Cards */
.medication-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.medication-card {
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-width: 280px;
  max-width: 320px;
}

.medication-card:hover {
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.medication-card.selected {
  border-color: #007bff;
  background-color: #f8f9ff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.medication-badge {
  position: absolute;
  top: -8px;
  left: 15px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.medication-badge.most-effective {
  background-color: #28a745;
}

.medication-badge.most-popular {
  background-color: #007bff;
}

.medication-info {
  margin-bottom: 15px;
}

.medication-name {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0 0 8px 0;
}

.medication-compound {
  font-size: 14px;
  color: #666;
  margin: 0 0 8px 0;
}

.medication-comparison {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.medication-image {
  text-align: center;
  margin: 15px 0;
}

.medication-vial {
  width: 60px;
  height: 80px;
  object-fit: contain;
}

.medication-price {
  text-align: center;
  margin-top: 15px;
}

.price-symbol {
  font-size: 16px;
  vertical-align: top;
}

.price-amount {
  font-size: 36px;
  font-weight: bold;
  color: #333;
}

.price-cents {
  font-size: 16px;
  vertical-align: top;
}

.price-period {
  display: block;
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

/* Current Prescription Styles */
.prescription-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.prescription-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.prescription-option {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 2px solid #ddd;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  max-width: 300px;
}

.prescription-option:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
}

.prescription-option.error {
  border-color: #f44336;
  box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.prescription-radio {
  width: 18px;
  height: 18px;
  margin-right: 15px;
}

.prescription-content {
  flex: 1;
}

.prescription-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0 0 5px 0;
}

.prescription-alternatives {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .medication-cards {
    flex-direction: column;
    align-items: center;
  }

  .medication-card {
    min-width: 100%;
    max-width: 100%;
  }

  .prescription-options {
    flex-direction: column;
    align-items: center;
  }

  .prescription-option {
    min-width: 100%;
    max-width: 100%;
  }

  .medication-question-options {
    flex-direction: column;
    align-items: center;
  }

  .medication-option {
    min-width: 200px;
  }
}
