/* ===== Nice-select overflow fix ===== */
.wpcf7-form .wpcf7-form-control-wrap{
  display: block;
  position: relative;
  width: 100%;
}

.wpcf7-form .nice-select{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.wpcf7-form .nice-select .list{
  display: block !important;
  flex-wrap: unset !important;
  flex-direction: unset !important;
}

.wpcf7-form .nice-select .list .option{
  display: block !important;
  float: none !important;
  width: 100% !important;
  white-space: normal !important;
}

/* ===== Base field spacing ===== */
.wpcf7-form p{
  display: block;
  margin-bottom: 26px;
  clear: both;
}

.wpcf7-form label{
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #142726;
  margin-bottom: 10px;
  font-family: "Public Sans", sans-serif;
}

/* ===== Text / email / tel / number / date / textarea ===== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea{
  width: 100%;
  border: 1.5px solid #E4DFCF;
  border-radius: 14px;
  padding: 13px 16px;
  font-family: "Public Sans", sans-serif;
  font-size: 14.5px;
  color: #1E2420;
  background: #FBFAF6;
  box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus{
  outline: none;
  border-color: #E07856;
}

.wpcf7-form textarea{
  min-height: 100px;
  resize: vertical;
}

/* ===== Nice-select dropdown override ===== */
.wpcf7-form .nice-select{
  width: 100%;
  border: 1.5px solid #E4DFCF;
  border-radius: 14px;
  padding: 13px 16px;
  height: auto;
  line-height: normal;
  font-family: "Public Sans", sans-serif;
  font-size: 14.5px;
  color: #1E2420;
  background: #FBFAF6;
  box-sizing: border-box;
}

.wpcf7-form .nice-select .current{
  color: #1E2420;
}

.wpcf7-form .nice-select:after{
  border-bottom: 2px solid #142726;
  border-right: 2px solid #142726;
  right: 18px;
}

.wpcf7-form .nice-select.open,
.wpcf7-form .nice-select:focus{
  border-color: #E07856;
}

.wpcf7-form .nice-select .list{
  width: 100%;
  border-radius: 14px;
  border: 1.5px solid #E4DFCF;
  box-shadow: 0 8px 20px rgba(20,39,38,0.08);
  margin-top: 6px;
  
  &::before {
    content: none;  
  }
}

.wpcf7-form .nice-select .option{
  font-size: 14.5px;
  padding: 10px 16px;
}

.wpcf7-form .nice-select .option.selected{
  font-weight: 600;
  color: #142726;
}

.wpcf7-form .nice-select .option:hover,
.wpcf7-form .nice-select .option.focus{
  background: #F1EEE4;
}

/* ===== Radio buttons as pills ===== */
.wpcf7-form .wpcf7-radio{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.wpcf7-form .wpcf7-list-item{
  margin: 0;
}

.wpcf7-form .wpcf7-list-item label{
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1EEE4;
  border: 1px solid #E4DFCF;
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #142726;
  cursor: pointer;
  margin-bottom: 0;
}

.wpcf7-form .wpcf7-list-item input[type="radio"]{
  accent-color: #E07856;
  cursor: pointer;
}

/* ===== Two-column row (contact method / how heard) ===== */
.form-row-half{
  display: flex;
  gap: 20px;
  width: 100%;
  padding-block-start: 26px;
  margin-block-end: 26px;
}

.form-row-half > p{
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  padding-block: 0 !important;
}

.wpcf7-form p:has(.nice-select) + p,
.wpcf7-form p:has(.nice-select) + div{
  padding-block-start: 26px;
}

@media (max-width: 600px){
  .form-row-half{
    flex-direction: column;form
  }
}

/* ===== Submit button ===== */
.wpcf7-form input[type="submit"]{
  width: 100%;
  background: #E07856;
  color: #FBFAF6;
  border: none;
  border-radius: 100px;
  padding: 14px 26px;
  font-family: "Public Sans", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform .15s ease;
}

.wpcf7-form input[type="submit"]:hover{
  transform: translateY(-1px);
}

/* ===== Validation + response messages ===== */
.wpcf7-form .wpcf7-not-valid-tip{
  color: #E07856;
  font-size: 12.5px;
  margin-top: 4px;
}

.wpcf7-response-output{
  border-radius: 14px !important;
  font-size: 13.5px;
  margin-top: 16px !important;
}

/* Directions Button - GREEN */
.directions-button-wrapper {
  text-align: right;
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.directions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.directions-btn:active {
  transform: translateY(0);
}

/* Modal Styles */
.directions-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.directions-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.directions-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	text-align: start;
  max-width: 860px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.directions-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
}

.directions-modal-header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--sage);
}

.directions-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.directions-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

/* Steps Container */
.directions-steps-container {
  padding: 24px;
  min-height: 300px;
}

.direction-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.direction-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.step-number {
  display: inline-block;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.direction-step h3 {
  margin: 12px 0 16px 0;
  font-size: 20px;
  color: var(--pine-deep);
}

.direction-step p {
  margin: 12px 0;
  line-height: 1.6;
  color: #555;
  font-size: 15px;
}

.step-image {
  margin: 16px 0;
  border-radius: 8px;
  overflow: hidden;
}

.step-image img {
  width: 100%;
  display: block;
}

.step-highlight {
  background: #f0f4ff;
  border-left: 4px solid #0047b2;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 16px 0;
  font-size: 14px;
  color: #003187;
}

.step-highlight strong {
  display: block;
  margin-bottom: 6px;
}

/* Navigation */
.directions-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-top: 1px solid #e0e0e0;
  background: #f9fafb;
  gap: 12px;
}

.directions-nav-btn {
  padding: 10px 18px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  color: #333;
}

.directions-nav-btn:hover:not(:disabled) {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
}

.directions-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.step-indicator {
  font-weight: 600;
  color: #22c55e;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
  .directions-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .directions-modal-header h2 {
    font-size: 18px;
  }

  .direction-step h3 {
    font-size: 18px;
  }

  .directions-nav {
    flex-wrap: wrap;
  }

  .directions-nav-btn {
    flex: 1;
    min-width: 120px;
  }
}