.mf-form * {
  box-sizing: border-box;
}

.mf-form [hidden] {
  display: none !important;
}

.mf-section {
  margin-bottom: 26px;
}

.mf-divider {
  border: none;
  border-top: 1px solid #dde1e8;
  margin: 22px 0;
}

.mf-section-title {
  font-size: 24px;
  font-family: "Playfair Display", Sans-serif;
  font-weight: 500;
  margin: 0 0 12px;
  color: #20232b !important;
}

.mf-group-label {
  font-size: 18px;
  font-weight: 500;
  color: #2c2c2c;
  margin-bottom: 10px;
}
.mf-group-label > p {
  margin-bottom: 0px !important;
}

.mf-required {
  color: #2c2c2c;
  font-weight: 400;
}

.mf-note {
  font-size: 12px;
  color: #6b7280;
}
.mf-note > p {
  margin-top: 0px !important;
}

.mf-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

@media (max-width: 480px) {
  .mf-grid2 {
    grid-template-columns: 1fr;
  }
}

.mf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.mf-field p{
  margin-bottom: 0px !important;
}

.mf-field.mf-full {
  grid-column: 1 / -1;
}

.mf-field label {
  font-size: 16px;
  font-weight: 500;
  color: #2c2c2c;
  font-family: Inter, sans-serif;
}

.mf-form input[type="text"],
.mf-form input[type="tel"],
.mf-form input[type="email"],
.mf-form textarea {
  font-size: 16px;
  color: #20232b;
  background: #fff;
  /* border: 1px solid #dde1e8; */
  border: 1px solid #F7B2BD3D;
  border-radius: 9px;
  padding: 10px 12px;
  width: 100%;
}
section.mf-section.passanger {
  border-radius: 20px;
  border: 1px solid #F7B2BD3D;
  padding: 16px;
}

.mf-form textarea {
  min-height: 78px;
  resize: vertical;
}

/* --- chip-style radio groups --- */
.mf-form [data-chip-group] .wpcf7-form-control.wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.mf-form .mf-chip-col .wpcf7-form-control.wpcf7-radio {
  flex-direction: column;
}

.mf-form [data-chip-group] .wpcf7-list-item {
  margin: 0;
  flex: 1 1 200px;
}

.mf-form .mf-chip-col .wpcf7-list-item {
  flex: 0 1 auto;
}

.mf-form [data-chip-group] .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 20px;
  font-family: "Playfair Display", Sans-serif;
  font-weight: 500;
  color: #20232b;
  background: #fff;
  border: 1px solid #dde1e8;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.mf-form .mf-chip-col .wpcf7-list-item label {
  flex-direction: row;
  justify-content: space-between;
  text-align: left;
}

.mf-form [data-chip-group] .wpcf7-list-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mf-form [data-chip-group] .wpcf7-list-item.mf-chip-selected label {
  background: #eef0fd;
  border-color: #4a5fe0;
  box-shadow: 0 0 0 1px #4a5fe0 inset;
  color: #3648c9;
  font-weight: 600;
  font-size: 20px;
  font-family: "Playfair Display", Sans-serif;
}

.mf-price {
  font-weight: 400;
  color: #4B5563;
  white-space: nowrap;
  font-size: 20px;
  font-family: "Playfair Display", Sans-serif;
}

.mf-form .mf-chip-col .wpcf7-list-item.mf-chip-selected .mf-price {
  color: #3648c9;
}

.mf-room-fixed {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eef0fd;
  border: 1px solid #aab4f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #3648c9;
}

.mf-info-note {
  font-size: 12.5px;
  color: #6b7280;
  background: #eef0f4;
  border: 1px solid #dde1e8;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}

.mf-info-note strong {
  color: #20232b;
}

/* .mf-form input[type="submit"] {
  font-size: 14.5px;
  font-weight: 600;
  color: #33409c;
  background: #c9d0fb;
  border: none;
  border-radius: 11px;
  padding: 13px 20px;
  cursor: pointer;
} */



input[type="submit"] {
    width: 100%;
    background: #c6d4ff;
    border: none;
    color: #2c2c2c;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.mf-form input[type="submit"]:hover {
  background: #b7c0f9;
}

/* --- accommodation: accordion (solo mode) --- */
.mf-acc-hotel {
  border: 1px solid #dde1e8;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.mf-acc-hotel-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: none;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Playfair Display", Sans-serif;
  color: #20232b;
  cursor: pointer;
  text-align: left;
}

.mf-acc-hotel-meta {
  margin-left: auto;
  font-weight: 400;
  font-family: Inter, sans-serif;
  color: #6b7280;
  font-size: 13.5px;
  white-space: nowrap;
}

.mf-acc-chevron {
  color: #6b7280;
  transition: transform 0.15s ease;
}

.mf-acc-hotel.mf-open .mf-acc-chevron {
  transform: rotate(180deg);
}

.mf-acc-hotel-body {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* each category group, and the CF7 list-item span it wraps, need an
   explicit flex context — spans are inline by default and won't
   blockify to full width without one */
.mf-acc-hotel-body > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mf-acc-category-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #20232b;
  margin: 6px 0 -2px;
}

/* --- accommodation: flat list (pair mode) --- */
.mf-acc-flat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mf-acc-flat-row {
  display: flex;
  flex-direction: column;
}

/* --- persistent "Valittu majoitus" summary --- */
.mf-acc-summary {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  padding: 10px 2px;
  margin-top: 10px;
  border-bottom: 1px solid #dde1e8;
  font-size: 13.5px;
}

.mf-acc-summary-check {
  color: #3648c9;
  font-weight: 600;
  white-space: nowrap;
}

.mf-acc-summary-value {
  color: #6b7280;
  text-align: right;
}

.mf-acc-summary-value.mf-has-selection {
  color: #20232b;
  font-weight: 600;
}

.mf-acc-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 6px;
}
