/* UPDATED May 20, 2022 */

/* AFFILIATE MEMBERSHIP PAGES */

/*

1. Create Pages
   - Affiliate Join Now Page
   - Annual Sign Up
   - Monthly Sign Up
2. Override image
3. Override Monthly / Annual Sign Up form copy
4. Hide Monthly / Annual Sign Up form Affiliate Question
5. Add Source Codes to Affiliate Join Now Page
  - Ask Audrey to make a source code for the affiliate group
  - Add the source code to the Annual and Monthly signup button links on the Affiliate Join Now page

*/

/* 2. OVERRIDE IMAGE - TEMPORARY STYLES - NO LONGER NEEDED WHEN BUILT USING NDWA SUPPORTER WEBSITE LAYOUT TOOLS */

.page-template-page-no-hero-affiliate .Header,
.page-template-page-no-hero-affiliate .persistent-banner,
.page-template-page-no-hero-affiliate .Footer{
  display: none;
}

.page-membership-portal-affiliate .page-join-now{
  margin: 10px -20px 0;
}

/* CGNA */
.page-id-6619 .page-membership-portal-affiliate .page-join-now, 
.page-id-6376 .page-membership-portal-affiliate .page-join-now{
  background-image: url(/wp-content/uploads/2021/11/cgna-image.jpeg);
    background-size: auto 420px;
}

@media (min-width: 992px){
  /* CGNA */
  .page-id-6619 .page-membership-portal-affiliate .page-join-now, 
  .page-id-6376 .page-membership-portal-affiliate .page-join-now{
    background-image: url(/wp-content/uploads/2021/11/cgna-image-vertical.jpeg);
    background-position: right -345px center;
    background-size: auto 75%;
  }
}

@media (min-width: 1100px){
  /* CGNA */
  .page-id-6619 .page-membership-portal-affiliate .page-join-now, 
  .page-id-6376 .page-membership-portal-affiliate .page-join-now{
    background-image: url(/wp-content/uploads/2021/11/cgna-image-vertical.jpeg);
    background-position: right -55px center;
    background-size: auto 70%;
  }
}

@media (min-width: 1200px){
  /* CGNA */
  .page-id-6619 .page-membership-portal-affiliate .page-join-now, 
  .page-id-6376 .page-membership-portal-affiliate .page-join-now{
    background-image: url(/wp-content/uploads/2021/11/cgna-image-vertical.jpeg);
    background-position: right -55px center;
    background-size: auto 80%;
  }
}

@media (min-width: 1400px){
/* CGNA */
.page-id-6619 .page-membership-portal-affiliate .page-join-now, 
.page-id-6376 .page-membership-portal-affiliate .page-join-now{
    background-image: url(/wp-content/uploads/2021/11/cgna-image-vertical.jpeg);
    background-position: right -55px center;
    background-size: auto 100%;
  }
}

/* 3. OVERRIDE MONTHLY / ANNUAL SIGN UP FORM COPY WITH CSS */

/* HIDE INTRO */
.affiliate-form header.at-markup > p:nth-child(1),
.affiliate-form header.at-markup > p:nth-child(2),
.affiliate-form header.at-markup > p:nth-child(3),
.affiliate-form header.at-markup > p:nth-child(4),
.affiliate-form header.at-markup > p:nth-child(5),
.affiliate-form header.at-markup > p:nth-child(6) {
  display: none !important;
}

/* CGNA MONTHLY EN */
#cgna-monthly-en .at-markup.HeaderHtml::before{
content: "Join us and get access to NDWA member benefits and CGNA programming and help us keep winning rights and dignity. Your debit, credit card, or prepaid card will be charged every month. A portion of your $5 monthly NDWA dues will go to support your access to CGNA programming and will help power our work locally and nationally.";
}

/* CGNA MONTHLY ES */
#cgna-monthly-es .at-markup.HeaderHtml::before{
content: "Únete aquí para obtener beneficios de membresía de la ANTH, acceso a los programas de CGNA y nos ayudarás a seguir ganando derechos y dignidad. Cada mes se realizará el cobro a tu tarjeta débito, tarjeta de crédito o tarjeta prepagada.  Una porción de tu pago de $5 a la ANTH irá para apoyar tu acceso a los programas de CGNA y ayudará a sostener nuestro trabajo local y nacional.";
}

/* CGNA ANNUAL EN */
#cgna-annual-en .at-markup.HeaderHtml::before{
content: "Join us and get access to NDWA member benefits and CGNA programming and help us keep winning rights and dignity. Your debit, credit, or prepaid card will be charged $60 one-time for a 1-year membership. A portion of your $60 annual NDWA dues will go to support your access to CGNA programming and will help power our work locally and nationally.";
}

/* CGNA ANNUAL ES */
#cgna-annual-es .at-markup.HeaderHtml::before{
content: "Únete aquí para obtener beneficios de membresía de la ANTH, acceso a los programas de CGNA y nos ayudarás a seguir ganando derechos y dignidad. Tu tarjeta de débito, de crédito o prepagada será debitada una vez por $60 para el pago de la membresía por un año. Una porción de tu pago de $60 irá para apoyar tu acceso a los programas de CGNA y ayudará a sostener nuestro trabajo local y nacional.";
}

/* PWC MONTHLY EN */
#pwc-monthly-en .at-markup.HeaderHtml::before{
  content: "Join us and get access to NDWA member benefits and PWC programming and help us keep winning rights and dignity. Your debit, credit card, or prepaid card will be charged every month. A portion of your $5 monthly NDWA dues will go to support your access to PWC programming and will help power our work locally and nationally.";
}

/* PWC ANNUAL EN */
#pwc-monthly-es .at-markup.HeaderHtml::before{
  content: "Join us and get access to NDWA member benefits and PWC programming and help us keep winning rights and dignity. Your debit, credit, or prepaid card will be charged $60 one-time for a 1-year membership. A portion of your $60 annual NDWA dues will go to support your access to PWC programming and will help power our work locally and nationally.";
}

/* START 3 - DEC 16, 2022, proposing generic copy override */
.affiliate-header{
  display:flex;
  flex-flow: row nowrap;
  margin-bottom: 10px;
  font-family: muli, sans-serif;
}

.affiliate-header .affiliate-header-back-link{
  flex: 0 0 auto;
  font-family: muli, sans-serif;
  color: #AAAAAA;
  text-decoration: underline;
}

.affiliate-header .affiliate-header-language{
  flex: 1 0 auto;
  font-family: muli, sans-serif;
}

.affiliate-header .affiliate-header-language .wpml-ls-legacy-list-horizontal{
  padding: 0;
  border: 0;
}

.affiliate-header .affiliate-header-language .wpml-ls-legacy-list-horizontal ul{
  text-align: right;
}

.affiliate-header .affiliate-header-language .wpml-ls-legacy-list-horizontal a{
  padding-top: 0;
  padding-bottom: 0;
  color: #AAAAAA;
  text-decoration: underline;
}

.affiliate-header .affiliate-header-language .wpml-ls-legacy-list-horizontal li.wpml-ls-current-language a{
  color: #000000;
  text-decoration: underline;
}

.affiliate-logos{
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  margin: 0 0 30px;
}

.affiliate-logos img{
  display: block;
  margin: 0 10px;
}

.affiliate-form-intro{
  color: #000000;
  max-width: 800px;
  margin: auto;
  font-family: muli, sans-serif;
}


.page-class-affiliate-monthly-form-page .at-markup.HeaderHtml::before{
  content: "Your debit, credit, or prepaid card will be charged $5 every month." !important;
  /* font-weight: 600; */
}

.page-class-affiliate-annual-form-page .at-markup.HeaderHtml::before{
  content: "Your debit, credit, or prepaid card will be charged $60 one-time for a 1-year membership." !important;
  /* font-weight: 600; */
}

.page-class-affiliate-monthly-form-es-page .at-markup.HeaderHtml::before{
  content: "A su tarjeta de débito, tarjeta de crédito o tarjeta prepaga se le cobrará $5 cada mes." !important;
  /* font-weight: 600; */
}

.page-class-affiliate-annual-form-es-page .at-markup.HeaderHtml::before{
  content: "Tu tarjeta de débito, de crédito o prepagada será debitada una vez por $60 para el pago de la membresía por un año" !important;
  /* font-weight: 600; */
}
/* END 3 - DEC 16, 2022, proposing generic copy override */

/* 4. HIDE QUESTION - Are you connected to a local NDWA affiliate organization? */
/* No additional action to take. This should automatically apply if the form is wrapped with .affiliate-form */

/* Monthly Signup Form - EN  */
.affiliate-form .QuestionHtml_319479426,
.affiliate-form .CustomFormFieldQuestion_1587889823762607_MappedSurveyQuestion_485792,

/* Annual Signup Form - EN */
.affiliate-form .QuestionHtml_319388599,
.affiliate-form .CustomFormFieldQuestion_5913052669501859_MappedSurveyQuestion_485792,

/* Annual Signup Form - ES */
.affiliate-form .QuestionHtml_317281863,
.affiliate-form .CustomFormFieldQuestion_7826698257325811_MappedSurveyQuestion_485792,

/* Monthly Signup Form - ES */
.affiliate-form .QuestionHtml_319454503,
.affiliate-form .CustomFormFieldQuestion_4678078804095113_MappedSurveyQuestion_485792{
  display: none !important;
}