/* =========================================================
   NutriWorkers Contact Page — matching landing aesthetic
   Accent: #303e7a
   ========================================================= */

:root{
  --nw-accent: #303e7a;
  --nw-ink: #0b1220;
  --nw-border: rgba(11,18,32,0.10);
  --nw-surface: rgba(255,255,255,0.96);
  --nw-shadow: 0 18px 60px rgba(11,18,32,.10);
  --nw-radius: 18px;
  --nw-radius-lg: 26px;
  --nw-max: 1120px;
  --nw-ease: cubic-bezier(.2,.8,.2,1);
}

body.page-template-contact-page #masthead.site-header{
  display: none !important;
}

/* =========================================================
   Fix GeneratePress layout (full width)
   ========================================================= */
.nw-contact,
.nw-contact #page,
.nw-contact #content,
.nw-contact .site-content,
.nw-contact .content-area,
.nw-contact #primary,
.nw-contact main,
.nw-contact article,
.nw-contact .inside-article,
.nw-contact .entry-content{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  background: #fff !important;
}


.nw-contact .grid-container,
.nw-contact .inside-article,
.nw-contact .inside-page-header{
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Container consistent with landing */
.nw-contact .nw-container{
  width: 100% !important;
  max-width: var(--nw-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}



/* =========================================================
   Base
   ========================================================= */
.nw-contact{
  background: #fff;
  color: var(--nw-ink);
  overflow: clip;
}

.nw-container{
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
}

@media (max-width: 720px){
  .nw-container{ padding: 0 30px; }
}

/* Hide GP title */
.nw-contact .entry-title{ display:none; }

/* =========================================================
   Header
   ========================================================= */
.nw-contactHero{
  padding: 94px 0 150px;
}

@media (max-width: 720px){
  .nw-contactHero{ padding: 72px 0 70px; }
}

.nw-contactHead{
  margin: 0 auto 78px;
  text-align: center;
}

.nw-contactTitle{
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.nw-contactTitle__line1{
  display:block;
  font-weight: 700;
  font-size: 68px;
  color: var(--nw-accent);
}

.nw-contactTitle__line2{
  display:block;
  font-weight: 400;
  font-style: italic;
  font-size: 68px;
  color: #000;
}

@media (max-width: 720px){
    .nw-contactTitle__line1{
        font-size: 52px;
    }
    
    .nw-contactTitle__line2{
        font-size: 52px;
    }
}

.nw-contactLead{
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.75;
  color: black;
}

/* Divisor elegante */
.nw-contactDivider{
  width: min(520px, 86%);
  height: 1px;
  margin: 20px auto 16px;
  background: linear-gradient(90deg,
    transparent,
    rgba(48,62,122,0.45),
    transparent
  );
  position: relative;
}

.nw-contactDivider::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(48,62,122,0.18);
  border: 1px solid rgba(48,62,122,0.35);
  border-radius: 2px;
}

/* =========================================================
   Grid
   ========================================================= */
.nw-contactGrid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 980px){
  .nw-contactGrid{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Cards
   ========================================================= */
.nw-card{
  background: var(--nw-surface);
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-lg);
}

/* =========================================================
   Form
   ========================================================= */
.nw-formCard{
  padding: 24px;
}

@media (max-width: 720px){
  .nw-formCard{ padding: 18px; }
}

.nw-form{
  display: grid;
  gap: 14px;
}

.nw-field label{
  display: inline-flex;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
  color: rgba(11,18,32,0.92);
  margin-bottom: 10px;
}

.nw-field label span{
  color: #c62828;
}

.nw-field input,
.nw-field textarea{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(11,18,32,0.14);
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  color: var(--nw-ink);
  outline: none;
  transition: border-color .18s var(--nw-ease), box-shadow .18s var(--nw-ease);
}

.nw-field textarea{ resize: vertical; min-height: 140px; }

.nw-field input:focus,
.nw-field textarea:focus{
  border-color: rgba(48,62,122,0.55);
  box-shadow: 0 0 0 4px rgba(48,62,122,0.10);
}

.nw-field.is-invalid input,
.nw-field.is-invalid textarea{
  border-color: rgba(198,40,40,0.55);
  box-shadow: 0 0 0 4px rgba(198,40,40,0.10);
}

.nw-fieldError{
  display:none;
  margin: 10px 0 0;
  font-size: 13px;
  color: #b42318;
  min-height: 16px;
  background: #F9E4E8;
  padding: 4px 10px;
}

.nw-fieldError.is-visible{
  display: block;
}

/* Consent */
.nw-consent{
  margin-top: 4px;
}

.nw-check{
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(11,18,32,0.86);
  margin-bottom:10px;
}

.nw-check input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nw-checkBox{
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(11,18,32,0.22);
  background: #fff;
  margin-top: 2px;
  transition: background .18s var(--nw-ease), border-color .18s var(--nw-ease), box-shadow .18s var(--nw-ease);
}

.nw-check input:checked + .nw-checkBox{
  background: var(--nw-accent);
  border-color: rgba(48,62,122,0.70);
  box-shadow: 0 10px 30px rgba(48,62,122,.18);
  position: relative;
}

.nw-check input:checked + .nw-checkBox::after{
  content:"";
  position:absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.nw-check a{
  color: rgba(48,62,122,0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(48,62,122,0.25);
}

.nw-check a:hover{
  border-bottom-color: rgba(48,62,122,0.55);
}

/* Submit button */
.nw-submit{
  position: relative;
  margin-top: 12px;
  margin-bottom: 5px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  letter-spacing: .02em;
  background: #303e7a;
  color: #fff;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: transform .18s var(--nw-ease), box-shadow .18s var(--nw-ease), opacity .18s var(--nw-ease);
  min-height: 48px;
}

.nw-submit:hover,
.nw-submit:focus,
.nw-submit:active{
  background: var(--nw-accent);
  color: #fff;
}

.nw-submit:disabled{
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* Texto ocupa espacio siempre */
.nw-submit__text{
  display: inline-flex;
  visibility: visible;
}

/* Spinner centrado, oculto por defecto */
.nw-submit__spinner{
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  animation: nwSpin .8s linear infinite;
  opacity: 0;
  pointer-events: none;
}

/* Loading: mismo tamaño, cambia contenido visible */
.nw-submit.is-loading .nw-submit__text{
  visibility: hidden;
}

.nw-submit.is-loading .nw-submit__spinner{
  opacity: 1;
}

@keyframes nwSpin{
  to{ transform: rotate(360deg); }
}

/* Mensaje de estado del formulario */
.nw-formNote{
  margin-bottom: 5px;
  font-size: 13px;
  padding: 4px 10px;
  display: none;             
}

/* Error */
.nw-formNote.is-error{
  display: inline-block;
  color: #b42318;
  background: #F9E4E8;
}

/* Éxito */
.nw-formNote.is-success{
  display: inline-block;
  color: #1a7f37;
  background: #E6F4EA;
}


/* =========================================================
   Side card
   ========================================================= */
.nw-contactSidebar{
  display: grid;
  gap: 30px;
  min-width: 0;
}

.nw-deleteCard{
  font-size: 16px;
  line-height: 1.6;
  color: rgba(11,18,32,0.86);
  overflow-wrap: anywhere;
}

.nw-deleteHead{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  text-align: left;
}

.nw-deleteHead .nw-sideIcon{
  width: 52px;
  height: 52px;
  font-size: 22px;
}

.nw-deleteHead .nw-sideTitle,
.nw-deleteHead .nw-sideDesc{
  margin: 0;
}

.nw-deleteCard > p{
  margin: 0 0 14px;
  color: inherit;
}

.nw-deleteCard a{
  color: var(--nw-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(48,62,122,0.25);
}

.nw-deleteCard a:hover{
  border-bottom-color: rgba(48,62,122,0.55);
}

.nw-deleteNotice{
  padding: 12px 14px;
  border: 1px solid rgba(224,174,61,0.18);
  border-radius: 14px;
  background: #fdf8ed;
  font-size: 14px;
}

.nw-deleteCard > p:last-child{
  margin-bottom: 0;
}

.nw-sideCard{
  padding: 22px;
}

@media (max-width: 720px){
  .nw-sideCard{ padding: 18px; text-align:center}
}

.nw-sideTitle{
  margin-bottom: 18px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.nw-sideDesc{
  margin: 6px 0 14px;
  color: rgba(11,18,32,0.70);
  font-size: 14px;
}

.nw-sideList{
  display: grid;
  gap: 12px;
  text-align:left;
}

.nw-sideLink{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(48,62,122,0.10);
  text-decoration: none;
  color: inherit;
  transition: transform .18s var(--nw-ease), background .18s var(--nw-ease), border-color .18s var(--nw-ease);
}

.nw-sideLink:hover{
  transform: translateY(-2px);
}

.nw-sideIcon{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgb(242,244,250);
  color: var(--nw-accent);
  flex: 0 0 auto;
}

.nw-sideText{
  display: grid;
  gap: 1px;
  min-width: 0;
}

.nw-sideTop{
  font-weight: 700;
  font-size: 16px;
  color: rgba(11,18,32,0.92);
}

.nw-sideBottom{
  font-size: 13px;
  color: rgba(11,18,32,0.68);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nw-sideArrow{
  margin-left: auto;
  color: rgba(11,18,32,0.45);
  flex: 0 0 auto;
}

/* divider mini */
.nw-dividerMini{
  height: 1px;
  margin: 16px 0 14px;
  background: linear-gradient(90deg, transparent, rgba(48,62,122,0.20), transparent);
}

/* Social */
.nw-socialTitle{
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(11,18,32,0.78);
  font-weight: 800;
  letter-spacing: .01em;
}

.nw-social{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nw-socialBtn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  transition: transform .18s var(--nw-ease), background .18s var(--nw-ease);
}

.nw-socialBtn:hover{
  transform: translateY(-1px);
  background: #000;
}

.nw-sideFine{
  margin: 14px 0 0;
  font-size: 13px;
  color: rgba(11,18,32,0.62);
}
