/**
* Theme Name: Wixi Child
* Description: This is a child theme of Wixi, generated by Merlin WP.
* Author: <a href="http://ninetheme.com/about">Ninetheme</a>
* Template: wixi
* Version: 1.1.4
*/

/* ===== FLOATING CONTACT BUTTON ===== */
.floating-contact-btn {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
}

.floating-contact-btn button {
  background: #1e3a5f;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.floating-contact-btn button:hover {
  background: #5089c6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.floating-contact-btn i {
  font-size: 20px;
}

@media (max-width: 768px) {
  .floating-contact-btn {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .floating-contact-btn span {
    display: none;
  }
  
  .floating-contact-btn button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }
}

/* ===== POPUP MAKER CONTENT ===== */
.pum-content {
  padding: 40px !important;
}

.pum-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #1e3a5f;
}

.pum-content .wpcf7 {
  margin: 0;
}

.pum-content hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 20px 0;
}

/* ===== QUICK CONTACT SECTION ===== */
.popup-quick-contact {
  background: #f5f8fa;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
}

.popup-quick-contact p {
  margin: 10px 0;
}

.popup-quick-contact strong {
  color: #1e3a5f;
  font-size: 16px;
}

.popup-quick-contact a {
  color: #5089c6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.popup-quick-contact a:hover {
  color: #1e3a5f;
}

.popup-quick-contact i {
  margin-right: 8px;
  color: #5089c6;
}

/* ===== FORM BASICS ===== */
.form-intro {
  color: #666;
  font-size: 15px;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group > label {
  display: block;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 8px;
  font-size: 15px;
}

/* ===== TEXT INPUTS ===== */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5089c6;
  box-shadow: 0 0 0 3px rgba(80, 137, 198, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== SIMPLE LARGE CHECKBOXES ===== */
.form-group .wpcf7-checkbox,
.form-group .wpcf7-acceptance {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 30px; /* Good tap target */
}

.form-group .wpcf7-list-item input[type="checkbox"] {
  /* Make checkbox larger */
  width: 24px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #5089c6; /* Colors the checkbox blue when checked */
}

.form-group .wpcf7-list-item-label {
  cursor: pointer;
  color: #333;
  line-height: 1.5;
  font-size: 15px;
}

/* GDPR section */
.form-group .wpcf7-acceptance {
  background: #f5f8fa;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.form-group .wpcf7-acceptance .wpcf7-list-item {
  align-items: flex-start;
}

.form-group .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  padding-top: 2px; /* Align with checkbox */
}

.form-group .wpcf7-acceptance a {
  color: #5089c6;
  text-decoration: underline;
}

.form-group .wpcf7-acceptance a:hover {
  color: #1e3a5f;
}

/* Mobile - even larger */
@media (max-width: 768px) {
  .form-group .wpcf7-list-item {
    min-height: 48px;
  }
  
  .form-group .wpcf7-list-item input[type="checkbox"] {
    width: 28px;
    height: 28px;
  }
  
  .form-group .wpcf7-list-item-label {
    font-size: 16px;
  }
}

/* ===== SUBMIT BUTTON ===== */
.button-slide {
  background: #5089c6;
  color: white;
  padding: 14px 35px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.button-slide:hover {
  background: #1e3a5f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* ===== VALIDATION MESSAGES ===== */
.wpcf7-not-valid-tip {
  color: #d63031;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.wpcf7-form-control.wpcf7-not-valid {
  border-color: #d63031;
}

.wpcf7-response-output {
  margin: 20px 0 0;
  padding: 15px;
  border-radius: 4px;
  font-size: 14px;
}

.wpcf7-mail-sent-ok {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents iOS zoom */
  }
  
  .button-slide {
    padding: 16px 30px;
  }
  
  .form-group .wpcf7-list-item {
    padding-left: 50px;
    min-height: 30px;
  }
  
  .form-group .wpcf7-list-item-label {
    font-size: 16px;
    min-height: 30px;
  }
  
  .form-group .wpcf7-list-item:before {
    width: 32px;
    height: 32px;
  }
  
  .form-group .wpcf7-list-item:after {
    left: 8px;
    top: 6px;
    width: 18px;
    height: 18px;
  }
}

/* ===================================
   NINJA FORMS - REFINED SPACING & TYPOGRAPHY
   Contact Page + Popup
   =================================== */

/* Remove Ninja Forms default padding */
.nf-form-layout {
  padding: 0 !important;
}

/* Field containers - MORE BREATHING ROOM */
.nf-field-container {
  margin-bottom: 25px; /* Was 15px */
}

/* Labels - BETTER HIERARCHY */
.nf-field-label label {
  display: block;
  margin-bottom: 8px; /* Was 6px */
  font-weight: 600;
  color: #1e3a5f;
  font-size: 15px; /* Was 14px */
  letter-spacing: 0.3px;
}

/* Required asterisk */
.ninja-forms-req-symbol {
  color: #d9534f;
  margin-left: 3px;
  font-weight: bold;
}

/* All input fields - MORE PADDING */
.nf-field-element input[type="text"],
.nf-field-element input[type="email"],
.nf-field-element input[type="tel"],
.nf-field-element textarea,
.nf-field-element select {
  width: 100%;
  padding: 12px 15px; /* Was 10px 12px */
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5; /* Added for better readability */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: white;
  color: #333;
  box-sizing: border-box;
}

/* Placeholder styling */
.nf-field-element input::placeholder,
.nf-field-element textarea::placeholder {
  color: #999;
  opacity: 1;
}

/* Focus states */
.nf-field-element input[type="text"]:focus,
.nf-field-element input[type="email"]:focus,
.nf-field-element input[type="tel"]:focus,
.nf-field-element textarea:focus,
.nf-field-element select:focus {
  border-color: #5089c6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(80, 137, 198, 0.1);
}

/* Dropdown (select) specific */
.nf-field-element select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e3a5f' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center; /* Was 12px */
  background-size: 12px;
  padding-right: 40px; /* Was 35px */
  cursor: pointer;
}

/* Textarea specific - MORE HEIGHT */
.nf-field-element textarea {
  min-height: 120px; /* Was 100px */
  resize: vertical;
  line-height: 1.6;
}

/* Three-column layout with MORE GAP */
.nf-form-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Was 15px */
}

.nf-form-content .one-third {
  flex: 0 0 calc(33.333% - 14px); /* Adjusted for new gap */
  min-width: 0;
}

.nf-form-content .one-third.first {
  flex: 0 0 calc(33.333% - 14px);
}

.nf-form-content .one-third.last {
  flex: 0 0 calc(33.333% - 14px);
}

/* Full width fields */
.nf-field-container:not(.one-third):not(.one-half) {
  flex: 0 0 100%;
}

/* GDPR checkbox field - MORE PADDING */
.checkbox-container {
  background: #f8f9fa;
  padding: 20px; /* Was 15px */
  border-radius: 4px;
  border: 1px solid #e9ecef;
  margin-top: 25px; /* Was 20px */
}

/* GDPR checkbox element */
.nf-field-element input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #5089c6;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

/* GDPR checkbox wrapper - MORE GAP */
#nf-field-27-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px; /* Was 10px */
}

#nf-field-27-wrap .nf-field-label {
  display: none;
}

#nf-field-27-wrap .nf-field-element {
  flex-shrink: 0;
}

/* GDPR description text - IMPROVED READABILITY */
.nf-field-description {
  font-size: 13px; /* Was 12px */
  color: #555;
  line-height: 1.7; /* Was 1.6 */
  margin: 0;
  flex: 1;
}

.nf-field-description p {
  margin: 0;
}

/* Links in GDPR text */
.nf-field-description a {
  color: #5089c6;
  text-decoration: underline;
}

.nf-field-description a:hover {
  color: #1e3a5f;
}

/* Remove weird inline styles from GDPR description */
.nf-field-description style {
  display: none;
}

/* Recaptcha field - MORE SPACING */
.recaptcha-container {
  margin: 20px 0; /* Was 15px */
}

.recaptcha-container .nf-field-label {
  display: none;
}

.g-recaptcha {
  margin: 0;
}

/* Submit button - MORE TOP MARGIN */
.submit-container {
  margin-top: 30px; /* Was 20px */
}

.submit-container .nf-field-label {
  display: none;
}

.submit-container input[type="submit"],
.submit-container button {
  background: #1e3a5f;
  color: white;
  border: none;
  padding: 15px 40px; /* Was 14px */
  font-size: 16px; /* Was 15px */
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0.5px;
}

.submit-container input[type="submit"]:hover,
.submit-container button:hover {
  background: #5089c6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* Error states */
.nf-error .nf-field-element input,
.nf-error .nf-field-element textarea,
.nf-error .nf-field-element select {
  border-color: #d9534f;
  background: #fff5f5;
}

.nf-error-wrap {
  color: #d9534f;
  font-size: 13px; /* Was 12px */
  margin-top: 6px; /* Was 5px */
  font-weight: 500;
  line-height: 1.4;
}

/* Success/error messages */
.nf-response-msg {
  padding: 18px 20px; /* Was 15px */
  border-radius: 4px;
  margin: 20px 0; /* Was 15px */
  font-size: 15px; /* Was 14px */
  line-height: 1.6;
}

.nf-response-msg.nf-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.nf-response-msg.nf-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Required fields notice - BETTER SPACING */
.nf-form-fields-required {
  font-size: 13px; /* Was 12px */
  color: #666;
  margin-bottom: 20px; /* Was 15px */
  font-style: italic;
}

/* Hide honeypot */
.nf-form-hp {
  display: none !important;
}

/* Loading state */
.nf-loading .nf-form-fields-required {
  opacity: 0.5;
  pointer-events: none;
}

.nf-loading .submit-container input[type="submit"],
.nf-loading .submit-container button {
  opacity: 0.7;
  cursor: wait;
}

/* Mobile responsive */
@media (max-width: 768px) {
  /* Stack fields on mobile */
  .nf-form-content .one-third,
  .nf-form-content .one-third.first,
  .nf-form-content .one-third.last {
    flex: 0 0 100%;
  }
  
  /* More spacing on mobile */
  .nf-field-container {
    margin-bottom: 20px;
  }
  
  .nf-field-element input[type="text"],
  .nf-field-element input[type="email"],
  .nf-field-element input[type="tel"],
  .nf-field-element textarea,
  .nf-field-element select {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 14px 15px; /* More padding on mobile */
  }
  
  .nf-field-element input[type="checkbox"] {
    width: 24px;
    height: 24px;
  }
  
  .submit-container input[type="submit"],
  .submit-container button {
    padding: 18px 30px; /* More padding on mobile */
    font-size: 17px; /* Larger on mobile */
  }
  
  .checkbox-container {
    padding: 16px; /* Was 12px */
  }
  
  .nf-field-description {
    font-size: 12px; /* Slightly smaller on mobile but still readable */
  }
}

/* Tablet breakpoint */
@media (max-width: 900px) and (min-width: 769px) {
  .nf-form-content .one-third {
    flex: 0 0 calc(50% - 10px);
  }
  
  .nf-form-content .one-third.last {
    flex: 0 0 100%;
  }
}

/* Remove Ninja Forms conflicting default styles */
.nf-form-content input:not([type="button"]):not([type="submit"]),
.nf-form-content textarea,
.nf-form-content select {
  box-shadow: none !important;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
  min-height: 700px;
  padding-bottom: var(--tec-spacer-14);
  padding-top: 250px;
}

/* ===================================
   THE EVENTS CALENDAR - BRAND STYLING
   =================================== */

/* Primary accent color - Use your brand blue */
.tribe-events {
  --tec-color-accent-primary: #5089c6;
  --tec-color-accent-primary-hover: #1e3a5f;
  --tec-color-link-primary: #5089c6;
  --tec-color-link-accent: #1e3a5f;
}

/* Mobile event dots - Brand blue */
.tribe-events .tribe-events-calendar-month__mobile-events-icon--event {
  background-color: #5089c6;
  border-radius: 50%;
  height: 12px;
  width: 12px;
}

/* Event links - Brand colors */
.tribe-events .tribe-events-calendar-list__event-title-link,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link {
  color: #1e3a5f;
  font-weight: 600;
  transition: color 0.3s ease;
}

.tribe-events .tribe-events-calendar-list__event-title-link:hover,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link:hover {
  color: #5089c6;
}

/* Search/Filter button - Brand blue */
.tribe-events .tribe-events-c-search__button,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-search__button {
  background-color: #5089c6;
  border-color: #5089c6;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tribe-events .tribe-events-c-search__button:hover {
  background-color: #1e3a5f;
  border-color: #1e3a5f;
}


.tribe-events .tribe-events-calendar-month__day-cell--selected, .tribe-events .tribe-events-calendar-month__day-cell--selected:focus, .tribe-events .tribe-events-calendar-month__day-cell--selected:hover {
  background-color: #5089c6 !important;
}


/* Hide floating elements inside Events Calendar iframe */
body.tribe-events-page-template .floating-contact-btn,
body.post-type-archive-tribe_events .floating-contact-btn,
body[class*="calendar-embed"] .floating-contact-btn,
body.tribe-events-page-template .cky-consent-container,
body.post-type-archive-tribe_events .cky-consent-container,
body.tribe-events-page-template .cky-btn-revisit-wrapper,
body.post-type-archive-tribe_events .cky-btn-revisit-wrapper {
  display: none !important;
}

.ecs-event-list {
  padding-left: 0;
  list-style: none; /* removes bullets */
  text-align: center;
}
.ecs-event .entry-title {
  text-align: center;
}
.ecs-event .duration {
  display: block;
  text-align: center;
}
.ecs-event {
  margin-bottom: 1rem;
}
