/* V4 Traveler Info / Quote Form Styles
 * Overrides for the get-quote form pages
 */

/* ============================================================
   V4 Common Form Styles (global for all V4 pages)
   No parent-class scoping needed — this file is V4-only.
   ============================================================ */

/* Labels */
.details label,
.form-group > label,
.select-nice label {
  font-size: 14px;
  font-weight: 500;
  color: #4d7391;
  margin-bottom: 8px;
  display: inline-block;
  padding-left: 0;
}

/* Form Controls: inputs, selects, textareas */
.form-control,
select.form-control,
input.form-control,
textarea.form-control {
  height: 48px;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #0b2b46;
  padding: 0 18px;
  background-color: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  max-width: 100%;
  width: 100%;
}
textarea.form-control {
  height: auto;
  padding: 12px 16px;
}
.form-control:focus {
  border-color: #147bd1;
  box-shadow: 0 0 0 3px rgba(46, 125, 209, 0.14);
  outline: none;
}
.form-control::placeholder {
  color: #767d8a;
}

/* Native select with custom chevron */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='%230f476b' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

/* Nice Select (JS dropdown replacement) */
.nice-select {
  height: 48px;
  line-height: 48px;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #0b2b46;
  padding: 0 40px 0 18px;
}
.nice-select::after {
  right: 16px;
  border-bottom: 2px solid #0f476b;
  border-right: 2px solid #0f476b;
  width: 8px;
  height: 8px;
}
.nice-select .current {
  font-weight: 600;
}

/* Bootstrap Select Override */
.bootstrap-select .btn,
.bootstrap-select {
  height: 48px;
  line-height: 48px;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #0b2b46;
  padding: 0 40px 0 16px;
  background-color: #fff;
}

/* ============================================================ */

.jumbotron {
  background: transparent;
}
.jumbotron::after {
  display: none;
}

/* Insurance Type Selector */
.insurance-type {
  background: transparent;
  padding: 0;
  margin: 24px 0 8px;
  align-items: center;
  gap: 16px;
}
.insurance-type h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0b2b46;
  margin: 0;
  white-space: nowrap;
  margin-bottom: 5px;
}
.insurance-type .form-group {
  margin-bottom: 0;
}
.insurance-type .dropdown .btn,
.insurance-type .bootstrap-select .btn,
.insurance-type .bootstrap-select .filter-option {
  padding: 0 40px 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #0b2b46;
  /*background-color: #fff;*/
  min-width: 220px;
  text-align: left;
}
.insurance-type .bootstrap-select {
  height: 48px;
  line-height: 48px;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #0b2b46;
  padding: 0 40px 0 18px;
}
.traveler-info .bootstrap-select::after {
  right: 16px;
  border-bottom: 2px solid #0f476b;
  border-right: 2px solid #0f476b;
  width: 8px;
  height: 8px;
}
.traveler-info .bootstrap-select .current {
  font-weight: 400;
}

/* Travel Information Section Header */
.traveler-info h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b2b46;
  line-height: 1.3;
}

/* DOB Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 43, 70, 0.18);
  transition: 0.3s;
  border-radius: 999px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
input:checked + .slider {
  background: #147bd1;
}
input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(46, 125, 209, 0.14);
}
input:checked + .slider:before {
  transform: translateX(17px);
}
.slider.round {
  border-radius: 20px;
}
.slider.round:before {
  border-radius: 50%;
}

/* Heading Information (Travel Info + DOB switch row) */
.headding-information {
  gap: 16px;
}
.headding-information p {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  margin-left: 10px;
  color: #4d7391;
  display: inline;
}
.insurance_type {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Form Card Wrapper - wraps the traveler and trip fields */
.traveler-col {
  padding: 32px 32px 0 32px;
  border: 1px solid #e6e9f2;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 2px 14px rgba(30, 40, 90, 0.05);
  margin-bottom: 0;
}
.trip-col {
  padding: 10px 32px 32px;
  border: 1px solid #e6e9f2;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 10px 20px -5px rgba(30, 40, 90, 0.05);
  margin-top: 0px;
  position: relative;
  z-index: 10;
}

/* Form Labels */
.traveler-info .details label,
.traveler-info .form-group > label {
  font-size: 14px;
  font-weight: 500;
  color: #4d7391;
  margin-bottom: 8px;
  display: inline-block;
  padding-left: 0;
}

/* Form Controls inside traveler-info */
.traveler-info .form-control,
.traveler-info select.form-control,
.traveler-info input.form-control {
  height: 48px;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #0b2b46;
  padding: 0 18px;
  background-color: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  max-width: 100%;
  width: 100%;
}
.traveler-info .form-control:focus {
  border-color: #147bd1;
  box-shadow: 0 0 0 3px rgba(46, 125, 209, 0.14);
  outline: none;
}
.traveler-info .form-control::placeholder {
  color: #767d8a;
}
.spouse-dob-box input.form-control {
  padding: 0 12px;
}

.child_dob_box input.form-control {
  padding: 0 4px;
}

/* Nice Select Override */
.traveler-info .nice-select {
  height: 48px;
  line-height: 48px;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #0b2b46;
  padding: 0 40px 0 18px;
}
.traveler-info .nice-select::after {
  right: 16px;
  border-bottom: 2px solid #0f476b;
  border-right: 2px solid #0f476b;
  width: 8px;
  height: 8px;
}
.traveler-info .nice-select .current {
  font-weight: 400;
}

/* Select Cal (date inputs) */
.traveler-info .select-cal {
  width: 100% !important;
}
.traveler-info .col-md-3 .select-nice,
.traveler-info .col-md-4 .select-nice {
  top: 0%;
  max-width: 100%;
}

/* Tooltip Icons */
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(11, 43, 70, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #4d7391;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  margin-left: 0px;
  cursor: help;
  flex-shrink: 0;
  transition:
    border-color 0.15s,
    color 0.15s;
  text-decoration: none;
}
.tooltip-icon:hover {
  border-color: #147bd1;
  color: #147bd1;
  text-decoration: none;
}
.tooltip-icon .tooltip-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: none;
  margin-left: 0;
  cursor: inherit;
}
.tooltip-icon .tooltip-icon-svg svg {
  width: 6px;
  height: 10px;
  opacity: 1;
}
.tooltip-icon-svg svg {
  width: 6px;
  height: 10px;
  opacity: 1;
}

/* Cross Input Icon (remove traveler) */
.cross-input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -3px;
  cursor: pointer;
}

.modal-mobile-only p {
  font-weight: 400 !important;
  font-size: 14px !important;
  color: #4d7391 !important;
  margin: 0px;
}

.spouse-age-box,
.spouse-dob-box,
.child_box {
  position: relative;
}

.form-group.child_box {
  margin-bottom: 0px;
}

.ageToggleBox {
  position: absolute;
  background: #fff;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.ageToggleBox .toggleBoxFrame {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.ageToggleBox .toggleBoxFrame span {
  padding-top: 20px;
}

/* V4: Spouse remove cross icon */
.spouse-age-box .remove_spouse,
.spouse-dob-box .remove_spouse {
  position: absolute;
  top: 22px;
  right: -6px;
  cursor: pointer;
}
.remove_spouse i {
  color: #acacac;
  background-color: #fff;
}

/* V4: First child cross icon — same as .remove_dependent */
.child_box .remove_first_child {
  position: absolute;
  top: 22px;
  right: -6px;
  cursor: pointer;
}
.remove_first_child i {
  color: #acacac;
  background-color: #fff;
}

/* V4: Hide cross icons — controlled by JS, CSS fallback */
.ageToggleBox ~ .remove_spouse,
.ageToggleBox ~ .remove_first_child {
  display: none !important;
}

/* Add Dependent Buttons */
.add-sp,
.add-ch,
.add-traveler-btn,
a[onclick*="addSpouse"],
a[onclick*="addChild"],
.add_traveler {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #147bd1;
  cursor: pointer;
  text-decoration: none;
  border: 1px dashed rgba(20, 123, 209, 0.55);
  border-radius: 999px;
  background: rgba(20, 123, 209, 0.08);
  padding: 0 20px;
  height: 48px;
  transition: background 0.15s;
}
.add-sp:hover,
.add-ch:hover,
.add-traveler-btn:hover,
a[onclick*="addSpouse"]:hover,
a[onclick*="addChild"]:hover,
.add_traveler:hover {
  background: rgba(20, 123, 209, 0.16);
  text-decoration: none;
  color: #147bd1;
}
.add-sp .fa-plus-circle,
.add-ch .fa-plus-circle,
.add_traveler .fa-plus-circle {
  color: #147bd1;
  font-size: 16px;
}

/* Get Quotes Button */
.get_quote_btn {
  margin-top: 32px;
}
.get_quote_btn .btn-orange,
.traveler-info .btn-orange {
  border-radius: 999px;
  min-width: 160px;
  height: 52px;
  line-height: 52px;
  padding: 0 34px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px rgba(47, 59, 216, 0.32);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
  text-align: center;
  display: inline-block;
}
.get_quote_btn .btn-orange:hover,
.traveler-info .btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(47, 59, 216, 0.4);
  color: #fff;
  text-decoration: none;
}
.get_quote_btn .btn-orange:active,
.traveler-info .btn-orange:active {
  transform: translateY(0);
}

/* Calendar Icon */
.cal-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #4d7391;
  font-size: 16px;
}

/* Error Messages */
.red_12,
.error_msg {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
}

/* Lowest Price Guaranteed Footer */
.traveler-info .media {
  display: flex;
  align-items: flex-start;
}
.traveler-info .media img {
  margin-right: 16px;
}
.traveler-info .media-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0b2b46;
  line-height: 1.3;
}
.traveler-info .media-body p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #4d7391;
}
.traveler-info .media-body p.smal-text {
  font-size: 12px;
  color: #4d7391;
}
.traveler-info .border-top {
  border-top: 1px solid rgba(11, 43, 70, 0.11) !important;
}

/* Sign In Policy Link */
.signin_policy {
  font-size: 15px;
  color: #0f476b;
  margin-top: 8px;
}
.signin_policy a {
  color: #147bd1;
  font-weight: 600;
}

/* Wizard Progress within traveler-info */
.traveler-info .wizard-progress {
  margin-bottom: 10px;
}

/* Compare page - quote edit form */
.compare .details label {
  font-size: 13px;
  color: #4d7391;
  font-weight: 600;
}
.compare .traveler-info {
  padding: 0;
}

/* DOB Field */
.traveler-info .set-dob {
  margin-top: 8px;
}

/* Hover effect cards (travel type selection) */
.hover-effect {
  padding: 28px 32px;
  background: #ffffff;
  border: 1px solid #e6e9f2;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(30, 40, 90, 0.05);
  position: relative;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
  border-top: 3px solid #147bd1;
}
.hover-effect:hover {
  border-color: #d4ddeb;
  box-shadow: 0 12px 30px rgba(28, 40, 64, 0.1);
  transform: translateY(-2px);
}
.hover-effect::after {
  display: none;
}
.hover-effect.hover-2::after,
.hover-effect.hover-3::after,
.hover-effect.hover-5::after {
  display: none;
}
.hover-effect p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #0f476b;
}
.hover-effect .btn-orange {
  min-width: 160px;
}

.heading4 {
  font-size: 20px;
  font-weight: 700;
  color: #0b2b46;
}
.heading5 {
  font-size: 18px;
  font-weight: 500;
  color: #0b2b46;
}
.heading5 span {
  color: #147bd1;
  font-weight: 700;
}
.btn-link_2 {
  font-size: 16px;
  font-weight: 700;
  color: #147bd1;
  display: block;
}

.card-1,
.card-2,
.card-3,
.card-4,
.card-5 {
  cursor: pointer;
  display: block;
}

/* Tabs within compare/quote results */
.tabs-header .sortby .details label {
  font-size: 13px;
  color: #4d7391;
  font-weight: 600;
}
.tabs-price .btn-orange {
  min-width: 120px;
}

/* Right quote box (mobile filter panel) */
.right-quote-box .traveler-info.d-block .mobile-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(11, 43, 70, 0.11);
}
.right-quote-box .traveler-info.d-block .mobile-header h6 {
  font-size: 16px;
  font-weight: 700;
  color: #0b2b46;
}
.right-quote-box .traveler-info.d-block .filter-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(11, 43, 70, 0.11);
}
.right-quote-box .traveler-info.d-block .desktop-hide {
  display: none;
}

/* Form control select1 override */
.traveler-info .form-control.select1 {
  max-width: 100%;
  height: 48px;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 0 40px 0 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  -webkit-appearance: none;
  appearance: none;
}
.future-svg svg,
.future-svg img {
  width: 16px;
  height: 16px;
}

/* ============================================================
   V4 QUOTE RESULT — .v4-card Scoped Styles
   ============================================================ */

/* Plan Cards — 14px radius, hover lift */
.v4-card .new-plan-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 14px;
  padding: 30px 28px 30px;
  box-shadow: 0 1px 2px rgba(28, 40, 64, 0.04);
  transition:
    box-shadow 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.v4-card .new-plan-card:hover {
  box-shadow: 0 12px 30px rgba(28, 40, 64, 0.1);
  border-color: #d4ddeb;
  transform: translateY(-2px);
}

/* Plan list layout */
.v4-card .tab-plan_lists {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- Pill-style Tabs ---- */
.v4-card .tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border: 1px solid rgba(11, 43, 70, 0.11);
  margin-bottom: 16px;
  border-radius: 8px;
  background: #f4f8fc;
}
.v4-card .tabs-header .card-tabs {
  display: inline-flex;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  gap: 2px;
  margin-right: 0;
}
.v4-card .tabs-header .nav-tabs {
  border-bottom: none;
  display: flex;
  gap: 8px;
}
.v4-card .tabs-header .nav-item.nav-link {
  border: 1.5px solid #dde2ea;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  background: #fff;
  color: #0f476b;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  margin: 0;
}
.v4-card .tabs-header .nav-item.nav-link.active {
  background: #0b2b46;
  color: #ffffff !important;
  border-color: #0b2b46;
}
.v4-card .tabs-header .nav-item.nav-link:hover:not(.active) {
  border-color: #147bd1;
  color: #147bd1;
}
.v4-card .link-icon {
  margin-right: 5px;
}
/* Sort dropdown */
.v4-card .tabs-header .sortby {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.v4-card .tabs-header .sortby label {
  font-size: 13px;
  color: #4d7391;
  font-weight: 600;
  margin: 0;
}
.v4-card .tabs-header .sortby select,
.v4-card .tabs-header .sortby .quote_sort_dropdown {
  font-weight: 600;
}
.v4-card .tabs-header .sortby select:focus {
  outline: none;
  border-color: #147bd1;
  box-shadow: 0 0 0 3px rgba(46, 125, 209, 0.14);
}

/* ---- Travel Info Summary (Left Panel) ---- */
.v4-card .header-edit-information {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}
.v4-card .header-edit-information .travel-info-summary {
}
.v4-card .header-edit-information .travel-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.v4-card .header-edit-information .travel-info-header h6 {
  font-size: 15px;
  font-weight: 700;
  color: #0b2b46;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.v4-card .header-edit-information .travel-info-header .edit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #e8f4fd;
  transition: background 0.15s;
}
.v4-card .header-edit-information .travel-info-header .edit-icon:hover {
  background: #cce7f9;
}
.v4-card .header-edit-information .travel-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
@media (max-width: 768px) {
  .v4-card .header-edit-information .travel-info-list {
    grid-template-columns: 1fr;
  }
  .v4-card .header-edit-information .travel-info-list li:last-child {
    grid-column: auto;
  }
}
.v4-card .header-edit-information .travel-info-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eef2f7;
}
.v4-card .header-edit-information .travel-info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  grid-column: 1 / -1;
}
.v4-card .header-edit-information .travel-info-list li label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7a8d;
  margin-bottom: 2px;
}
.v4-card .header-edit-information .travel-info-list li p {
  font-size: 13px;
  font-weight: 600;
  color: #0b2b46;
  margin: 0;
  white-space: nowrap;
}
.v4-card .header-edit-information .travel-info-list li .coverage-days {
  font-size: 12px;
  font-weight: 400;
  color: #6b7a8d;
}
.v4-card .header-edit-information .btn-link_2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #147bd1;
  text-decoration: none;
}
.v4-card .header-edit-information .btn-link_2:hover {
  color: #0f5fa3;
  text-decoration: underline;
}
.v4-card .header-edit-information .btn-link_2 img {
  width: 16px;
  height: 16px;
}
.v4-card .header-edit-information .signin_policy {
  font-size: 14px;
  color: #0f476b;
  margin: 0;
  margin-left: auto;
}

/* My Account Card */
.v4-card .left-filter-box .myaccount-card {
  background: #f4f8fc;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(28, 40, 64, 0.04);
}
.v4-card .left-filter-box .myaccount-card p {
  font-size: 13px;
  color: #0f476b;
  margin: 0 0 8px;
  line-height: 1.4;
}
.v4-card .left-filter-box .myaccount-card .btn-link_2 {
  font-size: 14px;
  font-weight: 600;
  color: #147bd1;
  text-decoration: none;
}
.v4-card .left-filter-box .myaccount-card .btn-link_2:hover {
  text-decoration: underline;
}
.v4-card .traveler-info {
  display: none;
}
#editTravelInfoModal .traveler-info {
  display: block !important;
  width: 1020px;
  margin: auto;
}
#editTravelInfoModal #insuranceForm h3 {
  display: none;
}
/* ---- Plan Card Header (name + type tag) ---- */
.v4-card .new-plan-card .main-headding-2 {
  padding-right: 90px;
}
.v4-card .new-plan-card .main-headding-2 h4 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.v4-card .new-plan-card .main-headding-2 h4 a {
  color: #0b2b46;
  text-decoration: none;
}
.v4-card .new-plan-card .main-headding-2 h4 a:hover {
  text-decoration: underline;
}
.v4-card .new-plan-card .main-headding-2 p {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 400;
  color: #4d7391;
}

/* Plan type badge / tag */
.v4-card .new-plan-card .plan-type-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  margin-left: 10px;
  vertical-align: middle;
}
.v4-card .new-plan-card .plan-type-badge.comprehensive {
  background: rgba(46, 125, 209, 0.11);
  color: #147bd1;
}
.v4-card .new-plan-card .plan-type-badge.limited {
  background: rgba(138, 144, 160, 0.14);
  color: #0f476b;
}
.v4-card .new-plan-card .plan-type-badge.trip {
  background: rgba(46, 125, 209, 0.11);
  color: #147bd1;
}

/* ---- Compare Checkbox (top-right) ---- */
.v4-card .new-plan-card .box-check {
  position: absolute;
  top: 30px;
  right: 20px;
  margin-left: 0;
  padding-left: 0;
  padding-right: 24px;
}
.v4-card .new-plan-card .box-check .custom-control-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #4d7391;
  margin-bottom: 0;
  cursor: pointer;
}
.v4-card .new-plan-card .box-check .custom-control-label::before,
.v4-card .new-plan-card .box-check .custom-control-label::after {
  left: auto;
  right: -24px;
}
.v4-card .new-plan-card .box-check .custom-control-label::before {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #cdd4e2;
}

/* ---- Plan Card Body: Horizontal Row Layout ---- */
.v4-card .new-plan-card .v4-plan-row {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  margin-top: 16px;
}
.v4-card .new-plan-card .v4-plan-features {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.v4-card .new-plan-card .v4-plan-selects {
  display: flex;
  gap: 0px;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 0px;
  flex-shrink: 0;
  flex-direction: column;
}
.v4-card .new-plan-card .v4-plan-price {
  text-align: right;
  min-width: 150px;
  flex-shrink: 0;
}

/* Pre-Existing Coverage dropdown — below deductible on desktop */
.v4-card .new-plan-card .v4-plan-preexisting {
  display: block;
  width: 100%;
  max-width: none;
  clear: both;
  flex-basis: 100%;
  margin-top: 0px;
}
.v4-card .new-plan-card .v4-plan-preexisting:empty {
  display: none;
}

/* ---- Green Checkmark Features ---- */
.v4-card .new-plan-card .tab-body-content .v4-plan-features p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: #0f476b;
  margin-bottom: 0px;
}
.v4-card .new-plan-card .tab-body-content .future-svg {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #2fa66a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.v4-card .new-plan-card .tab-body-content .future-svg svg,
.v4-card .new-plan-card .tab-body-content .future-svg img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(52%) sepia(53%) saturate(516%)
    hue-rotate(103deg) brightness(93%) contrast(90%);
}
.v4-card .new-plan-card .tab-body-content .trip-benefit-icon svg,
.v4-card .new-plan-card .tab-body-content .trip-benefit-icon img {
  width: 18px;
  height: 18px;
  filter: none;
}
.v4-card .new-plan-card .tab-body-content .trip-benefit-img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.v4-card .new-plan-card .tab-body-content .tooltip-icon-svg {
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: none;
  margin-left: 0;
}
.v4-card .new-plan-card .tab-body-content .tooltip-icon-svg:hover {
  border-color: transparent;
}
.v4-card .new-plan-card .tab-body-content .tooltip-icon-svg svg {
  width: 6px;
  height: 10px;
  opacity: 1;
}

/* ---- Inline Deductible / Coverage Selects ---- */
.v4-card .new-plan-card .tabs-input.details {
  gap: 14px;
}
.v4-card .new-plan-card .tabs-input .select-nice label {
  font-size: 11.5px;
  color: #4d7391;
  margin-bottom: 5px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
}
.v4-card .new-plan-card .tabs-input .select-nice label .quote-help {
  vertical-align: middle;
}
.v4-card .new-plan-card .tabs-input .select-nice .quote-help,
.v4-card .new-plan-card .tabs-input .quote-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(11, 43, 70, 0.28);
  border-radius: 999px;
  background: #ffffff;
  margin-left: 4px;
  cursor: pointer;
  vertical-align: middle;
  text-decoration: none;
  transition: border-color 0.15s;
}
.v4-card .new-plan-card .tabs-input .quote-help:hover {
  border-color: #147bd1;
  text-decoration: none;
}
.v4-card .new-plan-card .tabs-input .quote-help .tooltip-icon-svg {
  width: auto;
  height: auto;
  border: none;
  background: none;
  margin-left: 0;
}
.v4-card .new-plan-card .tabs-input .quote-help .tooltip-icon-svg svg {
  width: 6px;
  height: 10px;
  opacity: 0.6;
}
.v4-card .new-plan-card .tabs-input {
  .deductible-options {
    width: 105px;
  }
  .policy-max-options {
    width: 125px;
  }
  .dash_preexisting_options {
    width: 250px;
  }
  .inf_preexisting_options {
    width: 250px;
  }
  .nice-select .current {
    line-height: 35px;
    font-weight: 600;
  }
}
.v4-card .new-plan-card .tabs-input select.form-control:focus {
  outline: none;
  border-color: #147bd1;
  box-shadow: 0 0 0 3px rgba(46, 125, 209, 0.14);
}
.v4-card .new-plan-card .tabs-input .single_val_mx {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #0b2b46;
  padding: 8px 0;
}

/* Dropdown pill radius override */
.v4-card .new-plan-card .tabs-input select.form-control,
.v4-card .new-plan-card .tabs-input .nice-select,
.v4-card .tabs-header .sortby select,
.v4-card .tabs-header .sortby .quote_sort_dropdown {
  border-radius: 999px;
}

/* ---- Price + Buy Now Button ---- */
.v4-card .new-plan-card .v4-plan-price .tabs-price,
.v4-card .new-plan-card .tabs-price {
  text-align: right;
  min-width: 150px;
  margin-left: auto;
  flex-direction: column;
  align-items: flex-end;
}
.v4-card .new-plan-card .tabs-price h1,
.v4-card .new-plan-card .tabs-price .main-total-root {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  margin: 0;
}
.v4-card .new-plan-card .tabs-price .main_total_value_txt {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b2b46;
}
.v4-card .new-plan-card .tabs-price .main-total-root span.ml-1 {
  font-size: 12px;
  font-weight: 600;
  color: #4d7391;
}
.v4-card .new-plan-card .tabs-price > div > p,
.v4-card .new-plan-card .tabs-price .mr-0 > p {
  font-size: 11.5px;
  color: #4d7391;
  margin: 1px 0 0;
  text-align: right;
  display: block;
}
.v4-card .new-plan-card .tabs-price .btn-orange {
  margin-top: 11px;
  width: auto;
  min-width: 0;
  height: 44px;
  line-height: 44px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3a, #f2621b);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(240, 98, 27, 0.28);
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    filter 0.12s;
  text-align: center;
  display: inline-block;
  padding: 0 28px;
  white-space: nowrap;
}
.v4-card .new-plan-card .tabs-price .btn-orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(240, 98, 27, 0.36);
  filter: brightness(1.03);
  color: #fff;
  text-decoration: none;
}
.v4-card .new-plan-card .tabs-price .btn-orange:active {
  transform: translateY(0);
}
/* Price text inside Buy Now — hidden on desktop, visible on mobile */
.v4-card .new-plan-card .tabs-price .btn-orange .btn-price-mobile {
  display: none;
}
/* Coverage info below button — mobile only */
.v4-card .new-plan-card .tabs-price .coverage-info-mobile {
  display: none;
}

/* ---- Show Plan Details Footer Link ---- */
.v4-card .new-plan-card .v4-plan-details-tabs {
  padding-top: 14px;
}
/* Tabs and features styles moved to plan-features-grouped.css */

/* ---- Edit Travel Info Modal — size/footer tint only (design in modal.css) ---- */
#editTravelInfoModal .modal-dialog {
  max-width: 1100px;
}
#editTravelInfoModal .modal-footer {
  background: #f4f8fc;
  border-radius: 0 0 14px 14px;
}

/* ---- Plan Action Links (Brochure, FAQs, etc.) ---- */
.v4-card .new-plan-card .plan-action-links {
  display: flex;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(11, 43, 70, 0.11);
  margin: 0px;
}
.v4-card .new-plan-card .plan-action-links a {
  font-size: 13px;
  font-weight: 600;
  color: #147bd1;
}
.v4-card .new-plan-card .plan-action-links a svg {
  margin-left: 5px;
}
.v4-card .new-plan-card .plan-action-links a:hover {
  color: #0f5fa3;
  text-decoration: underline;
}

/* ---- Layout: Left Filter (aside) + Right Quote (main) ---- */
.v4-card,
.v4-card .row {
  overflow: visible !important;
}
.v4-card .left-filter-box {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  padding: 0;
  z-index: 1;
  overflow: visible;
  align-self: flex-start;
}
.v4-card .left-filter-box .filter-div {
  background: #f4f8fc;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(28, 40, 64, 0.04);
  padding: 18px;
  margin-bottom: 0;
}
.v4-card .left-filter-box .filter-div.fixed {
  border: 1px solid rgba(11, 43, 70, 0.11) !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 2px rgba(28, 40, 64, 0.04) !important;
  background: #f4f8fc !important;
  padding: 18px;
}
.v4-card .left-filter-box .filter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #0b2b46;
  padding: 0px 0 10px;
  border-bottom: 1px solid rgba(11, 43, 70, 0.11);
  margin: 0;
  height: auto;
}
.v4-card .left-filter-box .filter-body,
.v4-card .left-filter-box .filter-content {
  padding: 18px 18px 22px;
}
.v4-card .left-filter-box .filter-section-title,
.v4-card .left-filter-box .filter-label-heading {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4d7391;
}
.v4-card .left-filter-box .filter-section-title:first-child {
  margin-top: 0;
}
.v4-card .left-filter-box label,
.v4-card .left-filter-box .custom-control-label {
  cursor: pointer;
  font-size: 14px;
  color: #0f476b;
  line-height: 1.35;
  margin-bottom: 0;
}
.v4-card .left-filter-box .custom-control {
  margin-bottom: 11px;
  padding-left: 28px;
  display: block;
}
.v4-card .left-filter-box .custom-control-label::before,
.v4-card .left-filter-box .custom-control-label::after {
  left: -28px;
}
.v4-card .left-filter-box .custom-control-label::before {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #cdd4e2;
}
.v4-card .right-quote-box {
  flex: 1;
  min-width: 0;
  padding: 0;
}
.v4-card .row.mt-3.pt-1 {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  overflow: visible;
}

.desktop-hide {
  display: none !important;
}
.show-hide-properties-contents[aria-expanded="true"] .show-contents {
  display: none;
}
.show-hide-properties-contents[aria-expanded="false"] .hide-contents {
  display: none;
}

/* ---- Plan Details Page (V4) ---- */
.plan-details-v4 {
  padding-top: 20px;
  padding-bottom: 40px;
}
.plan-details-v4 .btn-back {
  font-size: 14px;
  font-weight: 600;
  color: #147bd1;
  text-decoration: none;
}
.plan-details-v4 .btn-back:hover {
  text-decoration: underline;
}

/* About this plan */
.plan-details-v4 .plan-detail-about {
  background: #f4f8fc;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 12px;
  padding: 20px 24px;
}
.plan-details-v4 .plan-detail-about h6 {
  font-size: 14px;
  font-weight: 700;
  color: #0b2b46;
  margin-bottom: 8px;
}
.plan-details-v4 .plan-detail-about p {
  font-size: 14px;
  color: #0f476b;
  line-height: 1.6;
  margin: 0;
}

/* Plan Header */
.plan-details-v4 .plan-detail-header {
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 12px;
  padding: 24px;
  background: #fff;
}
.plan-details-v4 .plan-detail-header .main-headding-2 h4 {
  font-size: 22px;
  font-weight: 800;
  color: #0b2b46;
  margin-bottom: 4px;
}
.plan-details-v4 .plan-detail-header .main-headding-2 p {
  font-size: 14px;
  color: #0f476b;
  margin: 0;
}
.plan-details-v4 .plan-detail-header .btn-orange {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7941e 0%, #f15a24 100%);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  line-height: 20px;
}

/* Feature badges row */
.plan-details-v4 .plan-detail-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.plan-details-v4 .feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0f476b;
}
.plan-details-v4 .feature-badge .future-svg svg {
  width: 16px;
  height: 16px;
}

/* Sections (Eligibility, Purchase Restrictions) */
.plan-details-v4 .plan-detail-section h5 {
  font-size: 16px;
  font-weight: 800;
  color: #0b2b46;
  margin-bottom: 12px;
}
.plan-details-v4 .plan-detail-section-content p {
  font-size: 14px;
  color: #0f476b;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* PDF Links */
.plan-details-v4 .plan-detail-links {
  padding: 16px 0;
  border-top: 1px solid rgba(11, 43, 70, 0.11);
}
.plan-details-v4 .plan-detail-links a {
  font-size: 13px;
  font-weight: 600;
  color: #147bd1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.plan-details-v4 .plan-detail-links a:hover {
  text-decoration: underline;
}
.plan-details-v4 .plan-detail-links .link-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
}
.plan-details-v4 .plan-detail-links .link-icon svg {
  width: 14px;
  height: 14px;
}
.plan-details-v4 .plan-detail-links .link-separator {
  margin: 0 10px;
  color: #cdd4e2;
}

/* Plan Details Accordion */
.plan-details-v4 .plan-detail-accordion .plan-description {
  font-size: 14px;
  color: #0f476b;
  line-height: 1.6;
  margin-bottom: 16px;
}
.plan-details-v4 .plan-detail-accordion h5 {
  font-size: 18px;
  font-weight: 800;
  color: #0b2b46;
  margin-bottom: 16px;
}

/* Plan Detail Page Tabs — styles in plan-features-grouped.css */

/* Benefit details accordion styling */
.plan-details-v4 .benefit_details_subtitles .card {
  border: none;
  border-bottom: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 0;
}
.plan-details-v4 .benefit_details_subtitles .card-header {
  background: #fff;
  border: none;
  padding: 16px 0;
  cursor: pointer;
}
.plan-details-v4 .benefit_details_subtitles .card-header h5,
.plan-details-v4 .benefit_details_subtitles .card-header .btn-link {
  font-size: 15px;
  font-weight: 700;
  color: #0b2b46;
  text-decoration: none;
  padding: 0;
}
.plan-details-v4 .benefit_details_subtitles .card-body {
  padding: 0 0 16px;
}
.plan-details-v4 .benefit_details_subtitles table {
  width: 100%;
  font-size: 13.5px;
}
.plan-details-v4 .benefit_details_subtitles table td {
  padding: 8px 12px;
  border: 1px solid rgba(11, 43, 70, 0.11);
  vertical-align: top;
}
.plan-details-v4 .benefit_details_subtitles table th {
  padding: 8px 12px;
  border: 1px solid rgba(11, 43, 70, 0.11);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  color: #0f476b;
  background: #f4f8fc;
}

/* ---- Tooltip Info Button ---- */
.v4-card .tooltip-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(11, 43, 70, 0.28);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #4d7391;
  line-height: 1;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.v4-card .tooltip-info-btn:hover {
  border-color: #147bd1;
  color: #147bd1;
}

/* ---- Benefits Expanded Panel ---- */
.v4-card .benefits-expanded-panel {
  background: #f4f8fc;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 12px;
}

/* ---- Eyebrow Labels ---- */
.v4-card .eyebrow-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #147bd1;
  margin-bottom: 6px;
  display: block;
}

/* ============================================================
   CONSOLIDATED MEDIA QUERIES
   Ordered from largest max-width to smallest
   ============================================================ */

/* ---- @media (min-width: 768px) and (max-width: 991px) ---- */
@media (min-width: 768px) and (max-width: 991px) {
  #pri_spo_age .need_child_coverage {
    margin-left: -71.4% !important;
    width: 171.4% !important;
    max-width: none !important;
    flex: 0 0 171.4% !important;
    .ageToggleBox .toggleBoxFrame {
      display: block;
    }
  }
}

/* ---- @media (max-width: 1024px) ---- */
@media (max-width: 1024px) {
  .v4-card .tabs-header {
    flex-wrap: nowrap;
    align-items: center;
  }
  .v4-card .tabs-header .sortby {
    margin-left: auto;
  }
  .v4-card .tabs-header .nav-item.nav-link {
    font-size: 12px;
    padding: 6px 12px;
  }
  .v4-card .new-plan-card .v4-plan-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .v4-card .new-plan-card .v4-plan-features {
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .v4-card .new-plan-card .tab-body-content .v4-plan-features p {
    font-size: 12px;
  }
  .v4-card .new-plan-card .v4-plan-selects {
    flex: 1;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-end;
  }
  .v4-card .new-plan-card .v4-plan-price {
    text-align: right;
    min-width: auto;
    margin-left: auto;
  }
  .v4-card .new-plan-card .tabs-price,
  .v4-card .new-plan-card .v4-plan-price .tabs-price {
    text-align: right;
    align-items: flex-end;
    min-width: auto;
    margin-left: 0;
  }
  .v4-card .new-plan-card .tabs-price .btn-orange {
    width: auto;
  }
  .v4-card .new-plan-card .v4-plan-details-tabs {
    margin-top: 0px !important;
    padding-top: 0px !important;
  }
  .v4-card .new-plan-card .tabs-input {
    .dash_preexisting_options,
    .inf_preexisting_options {
      width: 200px;
    }
  }
  .traveler-col {
    padding: 24px 12px 0 12px;
  }
  .trip-col {
    padding: 0px 12px 24px 12px;
  }
  .v4-card .right-quote-box {
    padding-left: 0px;
    padding-right: 15px;
  }
  .v4-card .left-filter-box {
    width: 100%;
    padding-left: 15px;
    padding-right: 0px;
  }
  .v4-card .row.mt-3.pt-1 {
    gap: 12px;
  }
  .v4-card .new-plan-card .tabs-price .main_total_value_txt {
    font-size: 34px;
  }
  #editTravelInfoModal .traveler-info {
    width: 950px;
  }
}

/* ---- @media (max-width: 991px) ---- */
@media (max-width: 991px) {
  #child_age_box .child_box:first-child > label,
  #child_dob_box .child_box:first-child > label,
  #child_age_box .child_box:first-child > .nowrap,
  #child_dob_box .child_box:first-child > .nowrap,
  #child_age_box_container .child_box:first-child > label,
  #child_dob_box_container .child_box:first-child > label,
  #child_age_box_container .child_box:first-child > .nowrap,
  #child_dob_box_container .child_box:first-child > .nowrap {
    /* display: none !important;*/
  }
  .child_box:first-child .remove_first_child {
    top: 34px;
    transform: translateY(-50%);
  }
  .child_box .remove_dependent {
    top: -5px;
  }
  /* Align additional children and + button with first child (no label offset) */
  #child_age_box .child_box:not(:first-child) > label,
  #child_dob_box .child_box:not(:first-child) > label,
  #child_age_box_container .child_box:not(:first-child) > label,
  #child_dob_box_container .child_box:not(:first-child) > label {
    display: none !important;
  }
  #child_age_box .add_more > label,
  #child_dob_box .add_more > label,
  #child_age_box_container .add_more > label,
  #child_dob_box_container .add_more > label,
  .child_desktop-spacer > label {
    display: none !important;
  }
  /* Align + icon vertically with inputs */
  #child_age_box .add_more .add-additional-child,
  #child_dob_box .add_more .add-additional-child,
  #child_age_box_container .add_more .add-additional-child,
  #child_dob_box_container .add_more .add-additional-child,
  .child_desktop-spacer .add-additional-child {
    display: flex;
    align-items: center;
    height: 100%;
  }
  .need_child_coverage .row {
    align-items: flex-end !important;
    margin-bottom: 10px;
  }
  .v4-card .new-plan-card .v4-plan-preexisting {
    max-width: 100%;
    margin-left: 0;
    padding-left: 0;
  }
  .traveler-col {
    padding: 24px 12px 0 12px;
  }
  .trip-col {
    padding: 0px 12px 24px 12px;
  }
  .primary-age-box {
    margin-top: 5px;
  }
  .headding-information p {
    font-size: 11px;
  }
  .v4-card .right-quote-box {
    padding-left: 0px;
    padding-right: 15px;
  }
  .v4-card .left-filter-box {
    width: 100%;
    padding-left: 15px;
    padding-right: 0px;
  }
}

/* ---- @media (max-width: 768px) ---- */
@media (max-width: 768px) {
  .v4-card .row.mt-3.pt-1 {
    gap: 12px;
  }
  .v4-card .left-filter-box .myaccount-card,
  .v4-card .header-edit-information,
  .v4-card .left-filter-box .filter-div {
    padding: 18px 6px;
  }
  .v4-card .header-edit-information .btn-link_2,
  .v4-card .left-filter-box label,
  .v4-card .left-filter-box .custom-control-label,
  .v4-card .left-filter-box .myaccount-card .btn-link_2 {
    font-size: 13px;
  }
  .filter-left {
    width: 100%;
  }
  .v4-card .left-filter-box {
    padding-left: 0px;
  }
  .v4-card .right-quote-box {
    padding-right: 0px;
  }
  .v4-card .tabs-header .sortby select,
  .v4-card .tabs-header .sortby .quote_sort_dropdown {
    padding: 0 16px 0 12px;
    font-size: 12px;
  }
  .quote_sort_dropdown::after {
    right: 5px !important;
  }
  .v4-card .new-plan-card .v4-plan-selects {
    flex-wrap: wrap;
    flex: 0;
  }
  .v4-card .new-plan-card .v4-plan-details-tabs {
    margin-top: 15px !important;
  }
  #editTravelInfoModal .traveler-info {
    width: 700px;
  }

  .v4-card .new-plan-card .plan-action-links a svg {
    margin-left: 2px;
  }
  .v4-card .link-icon {
    margin-right: 2px;
  }
}

/* ---- @media (max-width: 767px) ---- */
@media (max-width: 767px) {
  .child_box .ageToggleBox .toggleBoxFrame span {
    padding-top: 0;
  }
  #child_age_box .mobile-spacer,
  #child_dob_box .mobile-spacer {
    flex-basis: calc(66.6% - 0.5rem);
  }
  #child_age_box .child_box.w-reduced,
  #child_dob_box .child_box.w-reduced,
  #child_age_box_container .row > .col:first-child,
  #child_dob_box_container .row > .col:first-child,
  .child_age_box .row > .col:first-child,
  .child_dob_box .row > .col:first-child,
  #child_age_box .row > .col:not(.mobile-spacer),
  #child_dob_box .row > .col:not(.mobile-spacer) {
    flex-basis: calc(33.3% - 0.5rem);
    max-width: calc(33.3% - 0.5rem);
  }
  .v4-card .tabs-header .card-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .v4-card .tabs-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }
  .v4-card .tabs-header .nav-tabs {
    flex-wrap: nowrap;
  }
  .v4-card .tabs-header .sortby {
    margin-left: 0;
    justify-content: flex-end;
  }
  .v4-card .new-plan-card {
    padding: 16px;
  }
  .v4-card .new-plan-card .main-headding-2 {
    padding-right: 0;
  }
  /* 1. Badge in new row below plan name */
  .v4-card .new-plan-card .main-headding-2 h4 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 75%;
  }
  .v4-card .new-plan-card .plan-type-badge {
    margin-left: 0;
  }
  .v4-card .new-plan-card .box-check {
    top: 20px;
    right: 0px;
  }
  /* 3. Deductible + Coverage in single row */
  .v4-card .new-plan-card .tabs-input.details {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  .v4-card .new-plan-card .tabs-input.details > .d-block.select-nice {
    flex: 1;
    min-width: 0;
  }
  .v4-card .new-plan-card .tabs-input select.form-control,
  .v4-card .new-plan-card .tabs-input .select2 {
    width: 100%;
  }
  .v4-card .new-plan-card .tabs-input .deductible-options,
  .v4-card .new-plan-card .tabs-input .policy-max-options {
    width: 100%;
  }
  /* Pre-existing dropdown full width in next row */
  .v4-card .new-plan-card .v4-plan-preexisting {
    width: 100%;
  }
  /* 2. Price section — hide standalone price on mobile, show in button */
  .v4-card .new-plan-card .v4-plan-price {
    width: 100%;
    text-align: center;
    min-width: auto;
  }
  .v4-card .new-plan-card .v4-plan-price .tabs-price {
    align-items: stretch;
    text-align: center;
    width: 100%;
  }
  .v4-card .new-plan-card .tabs-price .price-desktop-section {
    display: none !important;
  }
  .v4-card .new-plan-card .tabs-price .btn-orange {
    width: 100%;
    min-width: auto;
    font-size: 16px;
    height: 48px;
    line-height: 48px;
    margin-left: 0;
  }
  .v4-card .new-plan-card .tabs-price .btn-orange .btn-price-mobile {
    display: inline;
  }
  .v4-card .new-plan-card .tabs-price .coverage-info-mobile {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #4d7391;
    margin-top: 8px;
  }
  .v4-card .header-edit-information {
    gap: 12px;
    padding: 12px 14px;
  }
  /* Mobile Action Bar */
  .mobile-action-bar {
    padding: 0;
  }
  .mobile-action-bar .btn-link_2 {
    font-size: 13px;
    font-weight: 600;
    color: #147bd1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .mobile-action-bar .btn-link_2 img {
    width: 14px;
    height: 14px;
  }
  .v4-card .row.mt-3.pt-1 {
    flex-direction: column;
    gap: 0;
  }
  .v4-card .left-filter-box {
    width: 100%;
    position: static;
    border-radius: 12px;
    margin-bottom: 16px;
    display: none;
  }
  .v4-card .left-filter-box.d-block {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 9999;
    background: #fff;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 0;
    margin: 0;
    padding: 20px 20px !important;
    max-height: none !important;
  }

  .v4-card .left-filter-box.d-block .filter-div .mobile-header a {
    padding: 8px;
  }
  .v4-card .left-filter-box.d-block .filter-div .mobile-header img {
    width: 16px;
    height: 16px;
  }
  .v4-card .left-filter-box.d-block .header-edit-information,
  .v4-card .left-filter-box.d-block .myaccount-card {
    display: none !important;
  }
  .v4-card .left-filter-box.d-block .filter-div {
    border: none;
    box-shadow: none;
    padding: 0 20px;
    height: auto !important;
    overflow: visible !important;
  }
  .v4-card .left-filter-box.d-block .filter-div .desktop-hide {
    display: block !important;
  }
  /* Hide sort dropdown from filter popup — already shown on page */
  .v4-card .left-filter-box.d-block .filter-div .sortby {
    display: none !important;
  }
  /* Ensure filter content is visible */
  .v4-card .left-filter-box.d-block .filter-div .mobile-pad-set {
    display: block !important;
  }
  .v4-card .left-filter-box.d-block .filter-div .mobile-header {
    padding: 0px;
    margin-bottom: 0;
    display: flex !important;
    justify-content: flex-end;
  }
  .v4-card .left-filter-box.d-block .filter-div .filter-footer,
  .v4-card .left-filter-box.d-block .filter-div .filter-left {
    display: block !important;
  }
  .v4-card .right-quote-box {
    width: 100%;
  }
  /* Show mobile elements */
  .v4-card .right-quote-box .desktop-hide,
  .v4-card .desktop-hide.filter-div {
    display: block !important;
    margin: 0px !important;
    padding: 0px;
  }
  .right-quote-box .filter-div .filter-header {
    margin-top: 0px;
  }
  .traveler-info .set-dob {
    margin-top: 10px;
  }
  .traveler-info .wizard-progress {
    display: none;
  }
  .traveler-info .jumbotron .lead {
    font-size: 15px;
  }
  .traveler-info .jumbotron {
    padding: 20px 0 8px;
  }
  .traveler-info .btn-orange,
  .get_quote_btn .btn-orange {
    width: 100%;
    min-width: auto;
  }
  .traveler-info .de-block,
  .traveler-info .d-block.select-nice {
    width: 100%;
  }
  .insurance-type {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  /* Allow compare bar on mobile for V4 — JS controls visibility via inline style */
  .compare-bar-box {
    display: none;
  }
  .compare-bar-box[style*="display: block"],
  .compare-bar-box[style*="display:block"] {
    display: block !important;
  }
  .v4-card .new-plan-card .plan-detail-tabs .nav-link {
    padding: 6px 12px;
  }
}

/* ---- @media (max-width: 575px) ---- */
@media (max-width: 575px) {
  .traveler-info .form-control,
  .traveler-info select.form-control,
  .traveler-info input.form-control,
  .traveler-info .nice-select {
    height: 44px;
    line-height: 44px;
    font-size: 14px;
  }
  .traveler-info h3 {
    font-size: 18px;
  }
  .get_quote_btn .btn-orange,
  .traveler-info .btn-orange {
    height: 48px;
    line-height: 48px;
    font-size: 15px;
    float: none !important;
    width: 290px;
  }
  #editTravelInfoModal .traveler-info {
    width: 300px;
  }
  .align-xs-center {
    text-align: center;
  }
  .plan-details-v4 .plan-detail-header {
    padding: 24px 12px;
  }
  .plan-details-v4 .btn-back {
    float: none;
  }
}

/* ---- @media (max-width: 530px) ---- */
@media (max-width: 530px) {
  #child_age_box .mobile-spacer,
  #child_dob_box .mobile-spacer {
    flex-basis: calc(63% - 0.5rem);
  }
  .child_age_box .row > .col:first-child,
  .child_dob_box .row > .col:first-child,
  #child_age_box .row > .col:not(.mobile-spacer),
  #child_dob_box .row > .col:not(.mobile-spacer) {
    flex-basis: calc(33% - 0.5rem);
    max-width: calc(33% - 0.5rem);
    margin-bottom: 10px;
  }
}

/* ---- @media (max-width: 420px) ---- */
@media (max-width: 420px) {
  #child_age_box .mobile-spacer,
  #child_dob_box .mobile-spacer {
    flex-basis: calc(63% - 0.5rem);
  }
  .child_age_box .row > .col:first-child,
  .child_dob_box .row > .col:first-child,
  #child_age_box .row > .col:not(.mobile-spacer),
  #child_dob_box .row > .col:not(.mobile-spacer) {
    flex-basis: calc(33% - 0.5rem);
    max-width: calc(33% - 0.5rem);
  }
  .v4-card .new-plan-card .tabs-price .coverage-info-mobile {
    margin-bottom: 8px;
  }
  .v4-card .new-plan-card .v4-plan-details-tabs {
    margin-top: 10px !important;
  }
  .quote_sort_dropdown::after {
    right: 10px !important;
  }
  .v4-card .new-plan-card .main-headding-2 h4 {
    width: 70%;
  }
}

/* ============================================================
   IFRAME LEFT-COLUMN FIX
   Inside an iframe, position:sticky on the left filter box creates a
   stacking context that lets the Filters panel visually overlap the
   Email Quote / Travel Information boxes above it. Force normal static
   block flow with explicit spacing so the boxes stack cleanly.
   (JS in common.js adds .in-iframe to <html> when embedded.)
   ============================================================ */
html.in-iframe .v4-card .left-filter-box {
  position: static !important;
  z-index: auto !important;
  display: block !important;
}
html.in-iframe .v4-card .left-filter-box .myaccount-card,
html.in-iframe .v4-card .left-filter-box .header-edit-information,
html.in-iframe .v4-card .left-filter-box .filter-div {
  position: static !important;
  float: none !important;
  clear: both !important;
  display: block !important;
  width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}
html.in-iframe .v4-card .left-filter-box .filter-div {
  margin-bottom: 0 !important;
}
