/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* Nexas kontaktformular. Force layout + force felter */
.wpcf7 form .nexas-contact-form,
.wpcf7 form .nexas-contact-form *{
  box-sizing: border-box !important;
}

/* Force grid */
.wpcf7 form .nexas-contact-form .nexas-contact-grid{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 22px 26px !important;
  align-items: start !important;
}

/* Stop tema-floats og tvungne widths på kolonner */
.wpcf7 form .nexas-contact-form .nexas-contact-grid > .col,
.wpcf7 form .nexas-contact-form .nexas-contact-grid > .col-full{
  float: none !important;
  width: auto !important;
  max-width: none !important;
  grid-column: auto !important;
}

/* Full width rækker */
.wpcf7 form .nexas-contact-form .col-full{
  grid-column: 1 / -1 !important;
}

/* CF7 wrapper spans må ikke være inline */
.wpcf7 form .nexas-contact-form span.wpcf7-form-control-wrap{
  display: block !important;
  width: 100% !important;
}

/* Force input styling uanset temaets CF7 selectors */
.wpcf7 form .nexas-contact-form input[type="text"],
.wpcf7 form .nexas-contact-form input[type="email"],
.wpcf7 form .nexas-contact-form input[type="tel"],
.wpcf7 form .nexas-contact-form textarea{
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;

  border: 1px solid #E6EAF2 !important;
  border-radius: 12px !important;
  background: #fff !important;

  padding: 18px 22px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  color: #1b1f2a !important;

  box-shadow: none !important;
  margin: 0 !important;
}

/* Ens højde på små felter */
.wpcf7 form .nexas-contact-form input[type="text"],
.wpcf7 form .nexas-contact-form input[type="email"],
.wpcf7 form .nexas-contact-form input[type="tel"]{
  height: 68px !important;
}

/* Tekstfelt */
.wpcf7 form .nexas-contact-form textarea{
  min-height: 210px !important;
  resize: vertical !important;
}

/* Placeholder */
.wpcf7 form .nexas-contact-form input::placeholder,
.wpcf7 form .nexas-contact-form textarea::placeholder{
  color: #9AA4B2 !important;
  opacity: 1 !important;
}

/* Focus */
.wpcf7 form .nexas-contact-form input:focus,
.wpcf7 form .nexas-contact-form textarea:focus{
  border-color: #2E5BFF !important;
  box-shadow: 0 0 0 4px rgba(46, 91, 255, 0.14) !important;
  outline: none !important;
}

/* Submit */
.wpcf7 form .nexas-contact-form input[type="submit"],
.wpcf7 form .nexas-contact-form input.wpcf7-submit{
  width: 100% !important;
  border: 0 !important;
  border-radius: 18px !important;
  padding: 20px 22px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  background: #0B3BFF !important;
  color: #fff !important;
  height: auto !important;
}

/* Mobil */
@media (max-width: 820px){
  .wpcf7 form .nexas-contact-form .nexas-contact-grid{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .wpcf7 form .nexas-contact-form input[type="text"],
  .wpcf7 form .nexas-contact-form input[type="email"],
  .wpcf7 form .nexas-contact-form input[type="tel"],
  .wpcf7 form .nexas-contact-form textarea{
    font-size: 18px !important;
    padding: 16px 18px !important;
    border-radius: 16px !important;
  }

  .wpcf7 form .nexas-contact-form input[type="text"],
  .wpcf7 form .nexas-contact-form input[type="email"],
  .wpcf7 form .nexas-contact-form input[type="tel"]{
    height: 60px !important;
  }

  .wpcf7 form .nexas-contact-form input[type="submit"],
  .wpcf7 form .nexas-contact-form input.wpcf7-submit{
    font-size: 20px !important;
    border-radius: 16px !important;
    padding: 18px 18px !important;
  }
}

/* Force textarea og submit til at gå over begge kolonner */
.wpcf7 form .nexas-contact-form .nexas-contact-grid > .col-full{
  grid-column: 1 / -1 !important;
}

/* Tekstfelt skal være fuld bredde */
.wpcf7 form .nexas-contact-form .nexas-contact-grid > .col-full textarea{
  width: 100% !important;
  min-height: 40px !important;
  max-height: 160px !important;
}

/* Knappen skal ikke være 100% bred. Den skal ligne dit mål billede */
.wpcf7 form .nexas-contact-form .nexas-submit input.wpcf7-submit{
  width: 100% !important;
  padding: 22px 34px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  display: inline-block !important;
}

/* Pil på knappen med CSS background SVG */
.wpcf7 form .nexas-contact-form .nexas-submit input.wpcf7-submit{
  padding-right: 30px !important;
  background-repeat: no-repeat !important;
  background-position: right 26px center !important;
  background-size: 18px 18px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 5 7 7-7 7'/%3E%3C/svg%3E") !important;
}

/* Mobil: knappen må gerne være fuld bredde */
@media (max-width: 820px){
  .wpcf7 form .nexas-contact-form .nexas-submit input.wpcf7-submit{
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}









