.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 5vw, 40px) clamp(10px, 3vw, 20px);
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

.card {
  background: #fff;
  max-width: 1200px;
  width: 100%;
  border-radius: clamp(8px, 2vw, 12px);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

.card h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: clamp(15px, 3vw, 25px);
  color: #2c3e50;
  text-align: center;
  line-height: 1.3;
  word-wrap: break-word;
}

.card h1 .text-primary {
  color: #e7445d;
}

.card h2 {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  margin-top: clamp(20px, 4vw, 30px);
  margin-bottom: clamp(8px, 2vw, 15px);
  color: #e7445d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  word-wrap: break-word;
}

.card h2 i {
  font-size: clamp(1rem, 3vw, 1.3rem);
  min-width: 1.5rem;
}

.card p {
  margin-bottom: clamp(12px, 2.5vw, 18px);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.6;
  color: #333;
  word-wrap: break-word;
}

.card ul {
  padding-left: clamp(20px, 4vw, 30px);
  margin-bottom: clamp(12px, 2.5vw, 20px);
}

.card ul li {
  margin-bottom: clamp(8px, 1.5vw, 12px);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.5;
  color: #444;
  word-wrap: break-word;
  position: relative;
}

/* Enhanced list styling */
.card ul li::marker {
  color: #e7445d;
}

/* Strong text styling */
.card ul li strong {
  color: #2c3e50;
  font-weight: 600;
}

/* Special styling for nested strong elements in lists */
.card ul li strong:first-child {
  display: inline-block;
  margin-right: 0.25rem;
}

/* Link styling */
a {
  color: #0077cc;
  text-decoration: none;
  transition: color 0.2s ease, border-bottom 0.2s ease;
  word-break: break-word;
  font-weight: 500;
  border-bottom: 1px dotted transparent;
}

a:hover {
  color: #e7445d;
  border-bottom-color: #e7445d;
}

/* Email link specific styling */
a[href^="mailto:"] {
  display: inline-block;
  padding: 2px 0;
}

/* Text uppercase utility */
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Icon spacing utility */
.me-2 {
  margin-right: 0.5rem;
}

/* Responsive icon adjustments */
@media (max-width: 480px) {
  .me-2 {
    margin-right: 0.3rem;
  }
}

/* =========================
TABLET (1024px)
========================= */
@media (max-width: 1024px) {
  .card {
    max-width: 900px;
  }
  
  .card h1 {
    font-size: 2.2rem;
  }
  
  .card h2 {
    font-size: 1.4rem;
  }
}

/* =========================
TABLET (768px)
========================= */
@media (max-width: 768px) {
  .wrapper {
    padding: 30px 15px;
  }
  
  .card {
    padding: 25px;
    border-radius: 10px;
  }
  
  .card h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .card h2 {
    font-size: 1.3rem;
    margin-top: 25px;
  }
  
  .card p,
  .card ul li {
    font-size: 15px;
  }
}

/* =========================
LARGE MOBILE (640px)
========================= */
@media (max-width: 640px) {
  .wrapper {
    padding: 20px 12px;
  }
  
  .card {
    padding: 20px;
  }
  
  .card h1 {
    font-size: 1.8rem;
  }
  
  .card h2 {
    font-size: 1.2rem;
    gap: 0.3rem;
  }
  
  .card h2 i {
    font-size: 1.1rem;
  }
  
  .card p,
  .card ul li {
    font-size: 14px;
  }
}

/* =========================
SMALL MOBILE (480px)
========================= */
@media (max-width: 480px) {
  .wrapper {
    padding: 15px 10px;
  }
  
  .card {
    padding: 18px;
    border-radius: 8px;
  }
  
  .card h1 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
  }
  
  .card h2 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 8px;
  }
  
  .card h2 i {
    font-size: 1rem;
    min-width: 1.3rem;
  }
  
  .card p,
  .card ul li {
    font-size: 13px;
    line-height: 1.5;
  }
  
  .card ul {
    padding-left: 18px;
  }
  
  .card ul li {
    margin-bottom: 6px;
  }
  
  a[href^="mailto:"] {
    word-break: break-all;
  }
}

/* =========================
VERY SMALL MOBILE (375px)
========================= */
@media (max-width: 375px) {
  .wrapper {
    padding: 12px 8px;
  }
  
  .card {
    padding: 15px;
  }
  
  .card h1 {
    font-size: 1.4rem;
  }
  
  .card h2 {
    font-size: 1rem;
    margin-top: 18px;
  }
  
  .card h2 i {
    font-size: 0.9rem;
    min-width: 1.2rem;
  }
  
  .card p,
  .card ul li {
    font-size: 12.5px;
    line-height: 1.5;
  }
  
  .card ul {
    padding-left: 16px;
  }
  
  .card ul li {
    margin-bottom: 5px;
  }
  
  /* Adjust strong text for better flow */
  .card ul li strong {
    display: inline;
    word-break: break-word;
  }
  
  /* Fix for double colons in list items */
  .card ul li strong:first-child {
    margin-right: 0.1rem;
  }
}

/* =========================
EXTRA SMALL MOBILE (320px)
========================= */
@media (max-width: 320px) {
  .wrapper {
    padding: 10px 5px;
    min-height: auto;
  }
  
  .card {
    padding: 12px 10px;
    border-radius: 6px;
  }
  
  .card h1 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  
  .card h2 {
    font-size: 0.95rem;
    margin-top: 15px;
    margin-bottom: 6px;
    gap: 0.2rem;
  }
  
  .card h2 i {
    font-size: 0.85rem;
    min-width: 1rem;
  }
  
  .card p {
    font-size: 11.5px;
    margin-bottom: 8px;
    line-height: 1.5;
  }
  
  .card ul {
    padding-left: 14px;
    margin-bottom: 8px;
  }
  
  .card ul li {
    font-size: 11.5px;
    margin-bottom: 5px;
    line-height: 1.4;
  }
  
  /* Adjust list item spacing for very small screens */
  .card ul li:last-child {
    margin-bottom: 0;
  }
  
  /* Email link styling for 320px */
  a[href^="mailto:"] {
    font-size: 11px;
    word-break: break-all;
    display: inline;
    padding: 0;
  }
  
  /* Ensure no horizontal scrolling */
  body {
    overflow-x: hidden;
  }
  
  .card {
    overflow-x: hidden;
  }
  
  /* Better text wrapping */
  .card p,
  .card ul li,
  a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  /* Adjust list marker size */
  .card ul li::marker {
    font-size: 10px;
  }
  
  /* Handle strong elements in lists */
  .card ul li strong {
    font-size: 11.5px;
    display: inline;
  }
  
  /* Remove extra spacing that might cause wrapping issues */
  .card ul li strong:first-child {
    margin-right: 0;
  }
  
  /* Fix for the double colon in the first list item */
  .card ul li:nth-child(1) strong {
    display: inline;
  }
  
  /* Ensure the colon after strong doesn't cause line break */
  .card ul li strong + br {
    display: none;
  }
  
  /* Special handling for the non-refundable services line */
  .card ul li:first-child {
    word-break: break-word;
  }
}

/* =========================
HOVER EFFECTS FIX FOR TOUCH DEVICES
========================= */
@media (hover: none) {
  a:hover {
    color: #0077cc;
    border-bottom-color: transparent;
  }
  
  .card {
    transform: none !important;
  }
}

/* =========================
LANDSCAPE MODE OPTIMIZATION
========================= */
@media (max-height: 500px) and (orientation: landscape) {
  .wrapper {
    min-height: auto;
    padding: 15px;
  }
  
  .card {
    margin: 5px auto;
  }
  
  .card h1 {
    margin-bottom: 10px;
  }
  
  .card h2 {
    margin-top: 12px;
  }
}

/* =========================
PRINT STYLES
========================= */
@media print {
  .wrapper {
    padding: 0;
    min-height: auto;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    padding: 15px;
  }
  
  .card h1,
  .card h2 {
    color: black;
  }
  
  .card h2 i {
    display: none;
  }
  
  a {
    color: black;
    text-decoration: none;
  }
  
  .me-2 {
    margin-right: 0;
  }
}

/* =========================
UTILITY CLASSES
========================= */
/* Better text wrapping */
.break-word {
  word-break: break-word;
  hyphens: auto;
}

/* Fix for long unbroken strings */
.long-text {
  word-break: break-all;
}

/* Smooth transitions */
.card, 
.card h1, 
.card h2, 
.card p, 
.card ul li,
a {
  transition: all 0.2s ease-in-out;
}

/* Ensure icons display properly */
.fas, .far, .fab {
  display: inline-block;
  font-style: normal;
}

/* Fix for any potential icon alignment issues */
.card h2 i {
  vertical-align: middle;
}

/* Special handling for the first list item with double colon */
.card ul li:first-child strong:first-child {
  position: relative;
}

/* Remove any unwanted spaces */
.card ul li br {
  display: none;
}

/* Ensure proper spacing for list items with strong tags */
.card ul li {
  display: list-item;
  list-style-position: outside;
}

/* =========================
ADDITIONAL 320px OPTIMIZATIONS
========================= */
@media (max-width: 320px) {
  /* Further optimize the first list item */
  .card ul li:first-child {
    display: list-item;
    word-break: break-word;
  }
  
  /* Handle the strong tag in first list item specifically */
  .card ul li:first-child strong {
    display: inline;
    word-break: break-word;
  }
  
  /* Adjust the colon after strong */
  .card ul li:first-child strong:first-child::after {
    content: "";
  }
  
  /* Ensure email link doesn't overflow */
  .card p a[href^="mailto:"] {
    display: inline;
    word-break: break-all;
    font-size: 11px;
  }
  
  /* Reduce gap between elements */
  .card h2 {
    margin-top: 12px;
  }
  
  /* Compress the content slightly */
  .card p:last-of-type {
    margin-bottom: 5px;
  }
  
  /* Adjust the process section specifically */
  .card h2:nth-of-type(3) {
    margin-top: 12px;
  }
  
  /* Fine-tune the cancellation section */
  .card h2:nth-of-type(4) {
    margin-top: 12px;
  }
  
  /* Last paragraph adjustments */
  .card p:last-of-type {
    margin-bottom: 0;
  }
}