/* Import Step 6 styles */
@import url('referrals-step6.css');

/* Referrals Welcome Section */
.referrals-welcome {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: sans-serif;
}

.referrals-welcome__title {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin-bottom: 24px;
}

.referrals-welcome__text {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 20px;
}

.referrals-welcome__button {
  display: inline-block;
  background-color: #1f4690;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.referrals-welcome__button:hover {
  background-color: #163671;
}

/* Account setup specific overrides */
.account-setup.referrals-welcome {
  text-align: center;
}

.account-setup .referrals-welcome__text {
  line-height: 0.5;
  margin-bottom: 0px;
}

/* Wizard Layout */
.referrals-wizard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  position: relative;
}

.referrals-wizard--full-width {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Year toggle */
.referrals-wizard__year-toggle {
  margin-bottom: 16px;
  font-size: 14px;
}

.referrals-wizard__year-toggle-label {
  font-weight: 600;
  margin-right: 8px;
}

.referrals-wizard__year-toggle-item {
  color: #1f4690;
  text-decoration: none;
}

.referrals-wizard__year-toggle-item:hover {
  text-decoration: underline;
}

.referrals-wizard__year-toggle-item--active {
  font-weight: 600;
  color: #000;
  cursor: default;
}

.referrals-wizard__year-toggle-sep {
  margin: 0 8px;
  color: #999;
}

/* Progress indicator */
.referrals-wizard__progress {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.referrals-wizard__step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

.referrals-wizard__step--active {
  background-color: #2a4b8d;
  color: white;
}

.referrals-wizard__step--selected {
  border: #2a4b8d 2px solid;
}

.referrals-wizard__step--completed {
  background-color: #4CAF50;
  color: white;
}

.referrals-wizard__step--disabled {
  background-color: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
}

/* Content area */
.referrals-wizard__content {
  padding: 20px;
  background-color: #fff;
}

.referrals-wizard__title {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 700;
}

.referrals-wizard__subtitle {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.referrals-wizard__instructions {
  margin-bottom: 25px;
  line-height: 1.5;
}

.referrals-wizard__text {
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Form elements */
.referrals-wizard__form {
  margin-bottom: 30px;
}

.referrals-wizard__form--readonly {
  pointer-events: none;
  opacity: 0.7;
}

.referrals-wizard__form--readonly input,
.referrals-wizard__form--readonly select,
.referrals-wizard__form--readonly textarea {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

.referrals-wizard__fields {
  margin-bottom: 30px;
}

.referrals-wizard__field {
  margin-bottom: 15px;
}

.referrals-wizard__field-value {
  font-weight: 500;
}

.referrals-wizard__label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}

.referrals-wizard__input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.referrals-wizard__select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.referrals-wizard__help {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

.referrals-wizard__helper-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.referrals-wizard__error {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Checkbox and radio */
.referrals-wizard__checkbox-group {
  margin-bottom: 15px;
  margin-top: 15px;
  padding-left: 10px;
}

.referrals-wizard__checkbox {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.referrals-wizard__checkbox input[type="checkbox"] {
  margin-top: 3px;
  margin-right: 10px;
}

.referrals-wizard__checkbox-text {
  flex: 1;
}

.referrals-wizard__radio-group {
  margin-bottom: 10px;
}

.referrals-wizard__radio {
  display: flex;
  align-items: center;
}

.referrals-wizard__radio input[type="radio"] {
  margin-right: 10px;
}

.referrals-wizard__radio-text {
  font-size: 16px;
}

/* Step 2 - Disclaimers */
.referrals-wizard__disclaimers {
  margin-bottom: 30px;
}

.referrals-wizard__disclaimer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.referrals-wizard__disclaimer {
  line-height: 1.5;
}

.referrals-wizard__disclaimer-hint {
  margin-top: 12px;
  padding: 10px;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  color: #856404;
  font-size: 14px;
}

/* Step 2 - Download buttons */
.referrals-wizard__download-section {
  margin-bottom: 30px;
}

.referrals-wizard__download-button {
  display: inline-block;
  background-color: #000;
  color: white;
  padding: 12px 20px;
  border-radius: 15px;
  text-decoration: none;
  margin-bottom: 15px;
  font-weight: 600;
  transition: background-color 0.3s;
  width: 100%;
  max-width: 400px;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
}

.referrals-wizard__download-button-group--step-2 {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.referrals-wizard__download-item {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.referrals-wizard__download-status {
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.referrals-wizard__download-status--success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.referrals-wizard__download-status--pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.referrals-wizard__info {
  margin-top: 10px;
  padding: 10px;
  background-color: #e7f3ff;
  border: 1px solid #bee5eb;
  border-radius: 4px;
}

.referrals-wizard__info p {
  margin: 0;
  color: #0c5460;
  font-size: 14px;
}


.referrals-wizard__download-button:hover {
  background-color: #333;
}

/* Step 3 - Verification elements */
.referrals-wizard__verification-section {
  margin-top: 25px;
}

.referrals-wizard__phone-info {
  margin: 15px 0;
  display: flex;
  align-items: center;
}

.referrals-wizard__phone-number {
  font-weight: 600;
  margin-right: 10px;
}

.referrals-wizard__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.referrals-wizard__avatar--small {
  width: 30px;
  height: 30px;
  font-size: 14px;
  margin-left: 10px;
}

.referrals-wizard__link {
  color: #2a4b8d;
  text-decoration: underline;
}

.referrals-wizard__verification-button-container {
  display: flex;
  align-items: center;
  margin: 30px 0;
}

.referrals-wizard__verification-input {
  margin-top: 30px;
  margin-bottom: 30px;
}

.referrals-wizard__verification-input .referrals-wizard__input {
  width: 450px;
}

/* Step 4 - Form sections and info boxes */
.referrals-wizard__info-box {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
}

.referrals-wizard__info-box p {
  margin: 0 0 10px 0;
}

.referrals-wizard__info-box p:first-child {
  font-weight: 600;
}

.referrals-wizard__form-group {
  margin-bottom: 30px;
}

.referrals-wizard__section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 25px 0 15px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.referrals-wizard__form-section {
  margin-bottom: 30px;
}

/* Action buttons */
.referrals-wizard__actions {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.referrals-wizard__button {
  padding: 10px 45px;
  border-radius: 15px;
  height: 40px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

/* Disabled wizard buttons ("In Review", Save & Continue, send code): a gray
   fill with dark gray text, readable at WCAG AA (#555 on #eee is 6.4:1). The
   old white text at 60% opacity measured 1.09:1. The colors are not brand
   tokens, so this is the same on every instance. */
.referrals-wizard__button.button--disabled {
  background-color: var(--disabled-color);
  color: var(--neutral-light-color);
  cursor: not-allowed;
  pointer-events: none;
}

.referrals-wizard__button--primary {
  background-color: #2a4b8d;
  color: white;
}

.referrals-wizard__button--primary:hover {
  background-color: #1e3a70;
}

.referrals-wizard__button--secondary {
  background-color: #000;
  color: white;
}

.referrals-wizard__button--secondary:hover {
  background-color: #333;
}

.referrals-wizard__button--black {
  background-color: #000;
  color: white;
}

.referrals-wizard__button--black:hover {
  background-color: #333;
}

/* Step 6 "In Review": without a color the browser's faded disabled text
   measured 1.92:1 on this gray; #555 on #d1d5db is 5.1:1. */
.referrals-wizard__button--gray {
  background-color: #d1d5db;
  color: var(--neutral-light-color);
}

.referrals-wizard__confirmation {
  background-color: var(--tertiary-color);        
  border: 1px solid var(--primary-color);         
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px;
  color: var(--secondary-color);                  
  font-family: var(--font-inter);
  font-size: var(--font-size);
  box-shadow: 0 2px 6px var(--shadow-color);      
}

.referrals-wizard__warning {
  color: var(--error-color); 
  font-weight: 600;
}

.referrals-wizard__details--step1 {
  margin-top: 10px;
  margin-left: 20px;
  padding: 10px;
  border-radius: 4px;
  background-color: var(--white);
}

.referrals-wizard__details--step1 textarea {
  width: 100%;
  min-height: 80px;
  padding: 8px;
  border: 1px solid var(--neutral-medium-color);
  border-radius: 4px;
  resize: vertical;
  color: var(--neutral-color);
}

.referrals-wizard__details--step1 textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}



.referrals-wizard__input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--neutral-medium-color);
  border-radius: 4px;
  color: var(--neutral-color);
}

.referrals-wizard__input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.referrals-wizard__suffix_input {
  display: flex;
}

.referrals-wizard__suffix_input label {
  flex: 1;
  line-height: 36px;
}

.referrals-wizard__suffix_input div {
  flex: 3
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .referrals-wizard__actions {
    flex-direction: column-reverse;
  }

  .referrals-wizard__button,
  .referrals-wizard__download-button {
    width: 100%;
    max-width: none;
  }

  .referrals-wizard__step {
    width: 35px;
    height: 35px;
    margin: 0 5px 10px;
    font-size: 14px;
  }

  .referrals-wizard__content {
    padding: 15px;
  }

  .referrals-wizard__verification-button-container {
    flex-wrap: wrap;
  }

  .referrals-wizard__avatar--small {
    margin-top: 10px;
  }

  .referrals-wizard__input,
  .referrals-wizard__select {
    max-width: 100%;
  }

  .referrals-wizard__phone-info {
    flex-wrap: wrap;
  }

  .referrals-wizard__avatar {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .referrals-wizard__step {
    width: 30px;
    height: 30px;
    margin: 0 3px 8px;
    font-size: 12px;
  }

  .referrals-wizard__title {
    font-size: 1.3rem;
  }

  .referrals-wizard__subtitle {
    font-size: 18px;
  }

  .referrals-wizard__section-title {
    font-size: 16px;
  }
}