@charset "UTF-8";
/*!
Theme Name: Campterra Child
Theme URI: https://motopress.com/products/campterra
Author: MotoPress
Author URI: https://motopress.com
Description: Professional online presence for your campground. Rent out campsite units with the online booking system, customize the theme visually, tell your story.
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: campterra
Template: campterra
*/

/* =========================================================
   Madison Arm Resort — Child Theme Overrides
   Migrated from WP Customizer (permanent styles)
   ========================================================= */

/* Breadcrumbs */
.mar-breadcrumbs{
  font-size: 14px;
  margin: 10px 0 15px;
}
.mar-breadcrumbs a{ text-decoration:none; }

/* Booking confirmation (page 12): move greeting up */
body.page-id-12 .mphb-login-form-wrap > p:first-child {
  transform: translateY(-680px) !important;
}

/* =========================================================
   Header styling
   ========================================================= */

.header-top { background-color: #cccc99; }

div.header-additional-info:nth-child(2) > div:nth-child(1) > div:nth-child(2) > span:nth-child(1),
div.header-additional-info:nth-child(2) > div:nth-child(2) > div:nth-child(2) > span:nth-child(1),
div.header-additional-info:nth-child(2) > div:nth-child(3) > div:nth-child(2) > span:nth-child(1) {
  color: black;
}

div.header-additional-info:nth-child(2) > div:nth-child(1) > div:nth-child(2) > span:nth-child(2) > a:nth-child(1),
div.header-additional-info:nth-child(2) > div:nth-child(3) > div:nth-child(2) > span:nth-child(2) > a:nth-child(1),
div.header-additional-info:nth-child(2) > div:nth-child(2) > div:nth-child(2) > span:nth-child(2) {
  font-size: 85%;
  color: #606060;
}

.site-title > a:nth-child(1) { display: none; }

.site-description { padding-left: 37px; }

/* =========================================================
   Header & Page Titles — text shadow
   NOTE: Fixed invalid nested CSS from Customizer
   ========================================================= */

.slick-track,
.campterra-page-title {
  text-shadow:
    -1px 1px 2px #000,
     1px 1px 2px #000,
     1px -1px 0 #000,
    -1px -1px 0 #000;
}

/* Remove shadow from non-button links inside those areas */
.slick-track a:not(.button),
.campterra-page-title a:not(.button) {
  text-shadow: none;
}

/* =========================================================
   Footer availability search labels
   ========================================================= */

.mphb_widget_search-check-in-date > label:nth-child(1),
.mphb_widget_search-adults > label:nth-child(1),
.mphb_widget_search-check-out-date > label:nth-child(1){
  color: white;
}

/* =========================================================
   Hide sections until complete
   ========================================================= */

#CSTAFF,
#menu-item-2389 > a:nth-child(1) {
  display: none;
}

/* =========================================================
   MPHB — hide checkout times (show date only)
   ========================================================= */

.mphb_sc_checkout-wrapper .mphb-check-in-date,
.mphb_sc_checkout-wrapper .mphb-check-out-date{
  font-size: 0 !important;
}

.mphb_sc_checkout-wrapper .mphb-check-in-date span:first-of-type,
.mphb_sc_checkout-wrapper .mphb-check-in-date time:first-of-type strong,
.mphb_sc_checkout-wrapper .mphb-check-out-date span:first-of-type,
.mphb_sc_checkout-wrapper .mphb-check-out-date time:first-of-type strong{
  font-size: 1rem !important;
}

/* =========================================================
   MPHB — booking UI tweaks
   ========================================================= */

/* Hide book button after add accommodation */
.mphb-reserve-room-section.mphb-rooms-added .mphb-book-button{
  display:none;
}

/* =========================================================
   Contact Form 7 — Humbly Nomadic
   ========================================================= */

/* Form container */
.hn-cf7-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 25px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  box-sizing: border-box;
}

/* CF7 wraps form controls in spans; ensure full width */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Two-column rows (First/Last, Email/Phone) */
.hn-cf7-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px 20px;
}

.hn-cf7-col {
  flex: 1;
  padding: 0 10px;
  min-width: 200px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* Full-width blocks */
.hn-cf7-full {
  width: 100%;
  margin-bottom: 20px;
}

/* Labels */
.hn-cf7-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
  font-size: 15px;
}

/* Inputs / Textareas */
.hn-cf7-input,
.hn-cf7-textarea,
.hn-cf7-form .wpcf7-form-control {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: #fafbfc;
  box-sizing: border-box;
}

.hn-cf7-input:focus,
.hn-cf7-textarea:focus,
.hn-cf7-form .wpcf7-form-control:focus {
  outline: none;
  border-color: #4a6cf7;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
  background-color: #fff;
}

.hn-cf7-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Phone hint text */
.hn-phone-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

/* =========================================================
   CF7 Acceptance / Checkboxes (newsletter + terms + NDA)
   IMPORTANT: CF7 acceptance markup MUST flex the LABEL, not the wrapper spans.
   ========================================================= */

/* Base spacing for the acceptance rows */
.hn-newsletter-optin,
.hn-terms-checkbox{
  margin: 15px 0;
}

/* CF7 acceptance list item label: force inline layout */
.hn-cf7-form .wpcf7-acceptance .wpcf7-list-item > label{
  display: inline-flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
}

/* Checkbox alignment */
.hn-cf7-form .wpcf7-acceptance .wpcf7-list-item > label > input[type="checkbox"]{
  width: auto !important;
  display: inline-block !important;
  margin: 3px 0 0 0 !important;
  flex: 0 0 auto;
}

/* Text container */
.hn-cf7-form .wpcf7-acceptance .wpcf7-list-item-label{
  display: inline-block !important;
  margin: 0 !important;
  line-height: 1.35;
}

/* Defensive: never let nested spans force line breaks */
.hn-cf7-form .wpcf7-acceptance .wpcf7-list-item-label span{
  display: inline !important;
}

/* Keep CF7 from indenting acceptance */
.hn-cf7-form .wpcf7-acceptance .wpcf7-list-item{
  margin: 0 !important;
}

/* Your newsletter text styling (kept) */
.hn-newsletter-text {
  font-size: 15px;
  color: #2c3e50;
}

/* Terms text styling (kept) */
.hn-terms-checkbox span {
  font-size: 14px;
  color: #2c3e50;
}

.hn-terms-checkbox a {
  color: #4a6cf7;
  text-decoration: none;
  transition: color 0.2s;
}

.hn-terms-checkbox a:hover {
  color: #2c3e50;
  text-decoration: underline;
}

/* =========================================================
   CF7 Submit / Turnstile alignment (fix “slightly left” issue)
   Root cause: theme styles on the <p> wrapper around submit
   ========================================================= */

.hn-cf7-submit-row{
  text-align: center;
  margin-top: 25px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Center turnstile */
.hn-cf7-submit-row .cf-turnstile,
.hn-cf7-submit-row .wpcf7-turnstile{
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 15px 0;
}

/* CF7 wraps submit in <p> — make that <p> a flex container */
.hn-cf7-submit-row > p{
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Submit button styling (kept) */
form.wpcf7-form input.hn-cf7-submit,
form.wpcf7-form input[type="submit"].hn-cf7-submit {
  background: #ffd900 !important;
  color: #333 !important;
  border: none;
  padding: 14px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block !important;
  margin-top: 15px;
}

/* Ensure submit isn’t forced full-width */
.hn-cf7-form input.wpcf7-submit,
.hn-cf7-form input[type="submit"]{
  width: auto !important;
  float: none !important;
}

/* Hover */
form.wpcf7-form input.hn-cf7-submit:hover,
form.wpcf7-form input[type="submit"].hn-cf7-submit:hover {
  background: #2ecc71 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
  .hn-cf7-row {
    flex-direction: column;
    margin: 0 0 10px;
  }
  .hn-cf7-col {
    padding: 0;
    min-width: 0;
  }
  .hn-cf7-form {
    padding: 15px;
  }
}

/* =========================================================
   NDA-specific acceptance wrapper helper (optional but fine)
   ========================================================= */

/* If you wrap acceptance in <div class="mar-nda-accept ..."> this keeps spacing consistent */
.mar-nda-accept{
  margin: 15px 0;
}
/* =========================================================
   CF7 Submit centering — hard override (beats theme p styles)
   ========================================================= */

/* Kill any paragraph indent/padding/left offset inside our submit rows */
body .entry-content .hn-cf7-submit-row > p,
body .site-content .hn-cf7-submit-row > p,
body .hn-cf7-submit-row > p{
  margin: 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

/* Make the submit itself immune to floats/positioning */
body .entry-content .hn-cf7-submit-row > p > input.wpcf7-submit,
body .site-content .hn-cf7-submit-row > p > input.wpcf7-submit,
body .hn-cf7-submit-row > p > input.wpcf7-submit{
  float: none !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Also center the container in case the theme gives it an offset */
body .entry-content .hn-cf7-submit-row,
body .site-content .hn-cf7-submit-row,
body .hn-cf7-submit-row{
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================================================
   CF7 spinner causes "button shifts left" after JS loads
   Fix: spinner should NOT take layout width (center button only)
   ========================================================= */

.hn-cf7-submit-row > p{
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* CF7 injects <span class="wpcf7-spinner"></span> after the button */
.hn-cf7-submit-row .wpcf7-spinner{
  /* take ZERO space in the flex layout */
  flex: 0 0 0 !important;
  width: 0 !important;

  /* but still show the spinner visually */
  overflow: visible !important;
  margin-left: -25px !important;

  /* defensive: some themes mess with inline elements */
  display: inline-block !important;
}
/* NDA page: add breathing room between Date and the first acceptance checkbox */
body.page-id-109762 .mar-nda-accept{
  margin-top: 60px !important; /* adjust to taste */
}
/* =========================================================
   intl-tel-input — force correct flag sprite paths (override any CSS aggregation)
   ========================================================= */

.iti__flag {
  background-image: url("/wp-content/themes/campterra-child/assets/intl-tel-input/img/flags.png") !important;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("/wp-content/themes/campterra-child/assets/intl-tel-input/img/flags@2x.png") !important;
  }
}

