@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

@import "nx/nx.css";
@import "nx/nx_buttons.css";
@import "nx/nx_privacy_1.css";

:root {
  /*Colors*/
  --primary: var(--p-primary-500);
  --primary-bg: var(--p-primary-300);

  --p-primary-50:  #f0f6fb;
  --p-primary-100: #d9e7f2;
  --p-primary-200: #b6d2e7;
  --p-primary-300: #89BCD3;
  --p-primary-400: #689fc1;
  --p-primary-500: #2B509C;
  --p-primary-600: #27488a;
  --p-primary-700: #233f77;
  --p-primary-800: #1F3250;
  --p-primary-900: #1a283f;
  --p-primary-950: #141e2e;

  --accent: #CAD772;
  --accent-bg: #376641;
  --cta: #CF7BD0;
  --cta-hover: #732474;

  --body-text-font: 'Figtree', sans-serif;
  --body-text-color: var(--text-dark);
  --body-text-size: 16px;

  --bg-dark: #1F3250;
  --bg-medium: #C8E4DA;
  --bg-light: #F7F7F7;

  --border-light: #C0C0C0;

  --text-dark: var(--bg-dark);
  --text-medium: #666666;
  --link-color: var(--cta);

  --text-header-font: 'Poppins', sans-serif;
  --text-header-size: clamp(24px, 2vw + 1rem, 36px);
  --text-header-weight: 700;
  --text-header-color: var(--bg-dark);

  --text-subheader-size: clamp(16px, 2vw, 24px);
  --text-subheader-weight: 600;
  --text-subheader-font: var(--body-text-font);
  --text-subheader-color: var(--body-text-color);

  --header-bg: var(--body-bg);
  --header-padding-y: 14px;
  --header-mobile-padding-y: 10px;
  --header-fixed-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  --header-main-links-xl-gap: 40px;
  --header-font-weight: 600;
  --header-color: var(--text-header-color);
  --header-main-nav-text-size: 16px;
  --header-main-nav-hover-color: var(--cta-hover);
  --header-main-nav-underline-color: var(--cta-hover);
  --header-active-color: var(--cta-hover);
  --header-logo-height: 64px;
  --header-mobile-color: var(--text-header-color);
  --header-mobile-size: 16px;
  --header-mobile-weight: 700;
  --header-mobile-hover-color: var(--text-inverse);
  --header-mobile-hover-bg-color: var(--cta);
  --header-toggle-bg: var(--cta);
  --header-toggle-bg-hover: var(--cta-hover);

  --terms-section-bg: var(--bg-light);

  --footer-bg: var(--bg-dark);
  --footer-border-color: transparent;
  --footer-text-size: 16px;
  --footer-text-color: var(--text-inverse);
  --footer-dso-logo-height: 70px;
  --footer-powered-logo-height: 42px;
  --footer-text-hover: var(--primary-bg);
  --footer-nav-bg: var(--accent-bg);

  --page-header-max-height: 312px;

  --find-your-dentist-form-height: 42px;
  --find-your-dentist-form-y-padding: 0;
  --find-your-dentist-form-right-padding: 0;
  --find-your-dentist-form-btn-border-radius: 0;
  --find-your-dentist-form-max-width: auto;
  --find-your-dentist-form-border-radius: 10px;
  --find-your-dentist-form-text-size: 16px;
  --find-your-dentist-form-btn-text-size: 16px;
  --find-your-dentist-form-btn-font-weight: 400;
  --find-your-dentist-form-btn-bg: var(--cta);
  --find-your-dentist-form-btn-hover-bg: var(--cta-hover);

  --home-main-banner-title-text-size: clamp(36px, 4vw, 43px);
  --home-main-banner-title-text-color: var(--text-inverse);
  --home-main-banner-subtitle-text-size: 20px;
  --home-main-banner-subtitle-text-color: var(--text-inverse);
  --home-main-banner-content-padding-y: 60px;
  --home-main-banner-content-max-width: 615px;
  --home-main-banner-form-padding: 20px;
  --home-main-banner-form-title-size: 13px;
  --home-main-banner-form-title-color: var(--text-header-color);
  --home-title-size: clamp(24px, 4vw, 40px);
  --home-subtitle-size: clamp(20px, 2vw, 28px);
  --home-subtitle-color: var(--text-header-color);
  --home-subtitle-weight: 600;
  --home-plans-card-bg: var(--bg-dark);
  --home-plans-card-box-shadow: 0 18px 30px #3961754d;
  --home-plans-card-title-size: 26px;
  --home-plans-card-price-bg: var(--primary-bg);
  --home-plans-card-text-color: var(--text-inverse);
  --home-plans-card-amount-size: 88px;
  --home-plans-card-amount-weight: var(--text-header-weight);
  --home-plans-card-amount-color: var(--text-header-color);
  --home-plans-card-sign-size: 17px;
  --home-plans-card-amount-font: var(--text-header-font);
  --home-plans-card-period-font: var(--text-header-font);
  --home-plans-card-period-size: 20px;
  --home-plans-card-period-weight: 400;
  --home-plans-card-perks-title-font: var(--text-header-font);
  --home-plans-card-perks-title-size: 24px;
  --home-plans-card-perks-title-weight: 600;
  --home-plans-perks-list-size: 20px;
  --home-plans-perks-list-check-color: var(--accent);
  --home-plans-card-perks-list-weight: 500;
  --home-why-card-content-bg: var(--body-bg);
  --home-why-card-title-color: var(--text-header-color);
  --home-why-bg: var(--bg-medium);
  --home-why-card-lg-width: 60%;
  --home-why-card-bg: var(--accent-bg);
  --home-why-card-title-size: 34px;
  --home-why-card-list-title-size: 24px;
  --home-why-card-list-title-font: var(--text-header-font);
  --home-why-card-list-title-color: var(--text-header-color);
  --home-why-card-list-title-weight: var(--text-header-weight);
  --home-why-card-list-icon-color: var(--cta-hover);
  --home-why-card-list-text-size: 24px;
  --home-why-card-list-text-weight: 500;
  --home-how-icon-color: var(--text-inverse);
  --home-how-icon-bg: var(--bg-dark);
  --home-how-icon-border: var(--cta);
  --home-how-icon-border-width: 0;
  --home-how-icon-size: 180px;
  --home-how-icon-mobile-size: 130px;
  --home-how-steps-wrapper-gap: 40px;
  --home-how-step-border-width: 0;
  --home-how-step-padding: 0;
  --home-how-step-box-shadow: none;
  --home-how-step-title-size: 26px;
  --home-how-step-content-size: 17px;
  --home-savings-bg: var(--bg-medium);
  --home-savings-table-body-size: 16px;
  --home-savings-table-highlight-size: 16px;
  --home-savings-note-size: 15px;
  --home-testimonials-title-font: var(--text-header-font);
  --home-testimonials-title-color: var(--text-inverse);
  --home-testimonials-title-weight: var(--text-header-weight);
  --home-testimonials-image-max-width: 700px;
  --home-testimonials-card-bg: white;
  --home-testimonials-card-color: var(--text-dark);
  --home-testimonials-card-title-font: var(--text-header-font);
  --home-testimonials-card-title-color: var(--text-header-color);
  --home-testimonials-card-title-size: 30px;
  --home-testimonials-card-title-weight: var(--text-header-weight);
  --home-testimonials-card-accent-color: var(--cta);
  --home-testimonials-card-text-size: 15px;
  --home-testimonials-card-text-color: var(--text-medium);
  --p-carousel-indicator-active-background: var(--cta);
  --home-questions-bg: var(--body-bg);
  --home-questions-text-size: 18px;
  --home-questions-separator-border: var(--bg-dark);
  --home-questions-separator-color: var(--bg-dark);
  --home-questions-separator-size: 21px;

  --savings-summary-note-size: 16px;
  --savings-summary-note-weight: 500;

  --find-form-search-btn-office-label-display: none;
  --find-form-border-color: var(--bg-dark);
  --find-steps-border-top-radius: 50px;
  --find-steps-border-top-mobile-radius: 40px;
  --find-steps-subtitle-weight: 600;
  --find-steps-active-icon-color: var(--accent-bg);
  --find-steps-inactive-icon-color: var(--accent-bg);
  --find-steps-completed-icon-color: var(--accent-bg);
  --find-steps-subtitle-size: 17px;
  --find-steps-complete-check-bg: var(--accent-bg);
  --find-steps-number-size: 40px;
  --find-steps-number-mobile-size: 32px;
  --find-steps-number-text-size: clamp(17px, 2vw, 20px);
  --find-steps-text-size: clamp(15px, 2vw, 20px);
  --find-steps-weight: 700;
  --find-form-label-color: var(--bg-dark);
  --find-content-border-radius: 50px;
  --find-content-border-color: transparent;
  --find-content-border-mobile-radius: 10px;
  --find-content-bg: var(--bg-light);
  --find-office-select-btn-height: 42px;
  --find-office-select-btn-border-radius: 10px;
  --find-office-select-btn-font-size: 14px;
  --find-office-details-title-size: 20px;
  --find-office-details-title-font: var(--body-text-font);
  --find-office-details-title-color: var(--text-header-color);
  --find-office-details-icon-color: var(--accent-bg);
  --find-results-title-size: 20px;
  --find-results-title-weight: 400;
  --find-results-title-color: var(--body-text-color);
  --find-map-border-color: var(--bg-dark);
  --find-map-border-width: 1px;

  --faq-entry-border-color: transparent;
  --faq-entry-title-color: var(--text-header-color);
  --faq-entry-title-size: 17px;
  --faq-open-icon-bg: #102539;
  --faq-close-icon-bg: var(--bg-dark);
  --faq-entry-title-weight: 700;
  --faq-answer-size: 15px;
  --faq-answer-color: var(--text-medium);
  --faq-contact-bg: var(--accent-bg);
  --faq-image-bg: #BCD3BD;
  --faq-contact-radius: 0;
  --faq-contact-info-title-color: var(--text-inverse);
  --faq-contact-info-text-color: var(--text-inverse);

  --support-page-bg: var(--bg-light);
  --support-wrapper-border-width: 0;
  --support-info-bg: var(--accent-bg);
  --support-info-title-size: 32px;
  --support-info-text-size: 19px;
  --support-info-icon-color: var(--bg-medium);
  --support-form-label-font: var(--text-header-font);
  --support-form-label-weight: 600;
  --support-form-label-color: var(--text-header-color);
  --support-form-label-size: 14px;

  --signup-content-bg: var(--bg-light);
  --join-now-title-text-align: center;
  --join-now-title-justify: center;
  --signup-summary-title-color: var(--accent-bg);
  --signup-summary-title-size: 14px;
  --signup-summary-title-weight: 600;
  --signup-summary-title-font: var(--body-text-font);
  --signup-summary-body-entry-size: 12px;
  --signup-summary-total-row-size: 14px;
  --signup-summary-link-color: var(--cta-hover);

  --login-form-subtitle-display: block;
  --login-form-subtitle-size: 14px;
  --login-form-label-size: 14px;
  --login-form-label-weight: 700;
  --login-forgot-link-color: var(--cta);

  --custom-table-header-bg: var(--bg-dark);
  --custom-table-header-font: var(--body-text-font);
  --custom-table-header-size: clamp(15px, 2vw, 18px);
  --custom-table-header-weight: 700;
  --custom-table-row-highlight-weight: var(--text-header-weight);
  --custom-table-row-full-text-align: left;
  --custom-table-row-full-color: var(--text-header-color);
  --custom-table-row-full-bg: var(--primary-bg);
  --custom-table-row-full-size: 20px;
  --custom-table-row-full-weight: 700;
  --custom-table-body-size: clamp(15px, 2vw, 20px);
  --custom-table-body-weight: 500;
  --custom-table-body-last-col-weight: 600;
  --custom-table-padding-y: 20px;

  --button-height: 42px;
  --button-text-size: 16px;
  --button-text-weight: 500;
  --button-border-radius: 1000px;
  --button-x-padding: 25px;
  --button-sm-height: 35px;
  --button-sm-text-size: 14px;
}

@layer components {
  /* CTA Button */
  .find-select-office-btn,
  .find-form-search-btn,
  .home-questions-contact-btn,
  .home-how-join-btn,
  .home-plans-join-btn,
  .header-join-now-btn,
  .header-logout-btn,
  .home-savings-btn,
  .savings-summary-btn,
  .support-send-btn,
  .start-btn,
  .checkout-success-btn,
  .login-btn,
  .submit-reset-btn,
  .login-forgot-submit-btn {
    color: var(--text-inverse);
    background-color: var(--cta);
    border-color: var(--cta);

    &:hover:not(:disabled) {
      background-color: var(--cta-hover);
      border-color: var(--cta-hover);
    }
  }

  /* Primary Button */
  .add-dependent-btn,
  .find-your-dentist-form-btn {
    color: var(--text-inverse);
    background-color: var(--primary);
    border-color: var(--primary);

    &:hover:not(:disabled) {
      background-color: #0078AB;
      border-color: #0078AB;
    }
  }

  /* Outlined Dark */
  .find-form-clear-btn,
  .find-clear-filters-btn,
  .scheduleButton,
  .login-go-back-btn {
    color: var(--text-header-color);
    background-color: transparent;
    border-width: 1px;
    border-color: var(--bg-dark);

    &:hover:not(:disabled) {
      background-color: var(--bg-dark);
      color: var(--text-inverse);
    }
  }

  /* Dark / White */
  .home-questions-faq-btn {
    color: var(--text-inverse);
    background-color: var(--bg-dark);
    border-color: var(--bg-dark);

    &:hover:not(:disabled) {
      background-color: white;
      color: var(--text-header-color);
      border-color: var(--bg-dark);
    }
  }

  /** White / CTA */
  .faq-contact-btn,
  .support-faq-link {
    color: var(--cta);
    background-color: white;
    border-radius: 10px;

    &:hover:not(:disabled) {
      color: var(--cta-hover);
      background-color: white;
    }
  }

  .login-btn {
    border-radius: 10px;
  }

  .start-btn {
    font-size: 18px;
    font-weight: 500;
    border-radius: 10px;
    height: 48px;
    font-weight: 600;
  }

  .support-link {
    border-radius: 8px;
    border-color: var(--border-light);
    background-color: var(--body-bg);
    height: 32px !important;
    font-size: 12px !important;
    font-weight: 700;

    &:hover {
      color: #004a43;
    }
  }
}

.home {
  --header-bg: var(--bg-dark);
  --header-padding-y: 30px;
  --header-color: var(--text-inverse);
  --header-main-nav-hover-color: var(--text-inverse);
  --header-main-nav-underline-color: var(--text-inverse);
  --header-active-color: var(--text-inverse);
  --header-mobile-color: var(--text-inverse);
  --header-logo-alt-display: block;
  --header-logo-display: none;
  --header-logo-height: 50px;

  --custom-table-border-radius: 0;
  --custom-table-margin-top: 32px;

  .main-content {
    .btn {
      min-width: 230px;
    }
  }
}
