.youtrip-perks-container {
    font-family: "Poppins", Sans-serif;
    margin: 40px 0;
}

.perks-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    justify-content: center;
}

.perk-card {
    width: 23%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 4px -2px 16px rgba(62, 41, 106, 0.16);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.perk-header {
    padding: 20px 50px 10px;
    position: relative;
    min-height: 175px;
    display: flex;
    flex: 1;
    align-items: center;
}

.perk-header img {
    margin: 0;
}

.valid-date {
    font-size: 12px;
    font-weight: 500;
    font-family: "Poppins", Sans-serif;
    background: #FF7C6A;
    color: white;
    padding: 0 12px;
    border-radius: 22px;
    position: absolute;
    top: 20px;
    left: 15px;
}

.perk-footer {
    background: #531E8F;
    border-radius: 0 0 20px 20px;
    padding: 20px;
    margin-top: auto;
}


.small-text {
    font-size: 14px;
    font-weight: 500;
    font-family: "Poppins", Sans-serif;
    color: white;
    margin-bottom: 0 !important;
}

.cashback {
    color: white !important;
    margin: 0px 0 10px !important;
    font-family: "Poppins", Sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    min-height: 40px;
}

.perk-button {
    border: 1px solid white;
    padding: 5px 18px;
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    font-family: "Poppins", Sans-serif;
    font-weight: 500;
    color: #fff !important;
}
.perk-button.is-thai {
    font-family: "Prompt";
}
.perk-card.is-thai,
.perk-card.is-thai * {
    font-family: "Prompt"!important;
}

.perk-button:hover {
    background: #10DBAC;
}

/* Modal base */
.perk-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 30px 15px;
}

.perk-modal-content {
  width: 100%;
  max-width: 800px;
  background: #f7f7fb;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 28px;
  cursor: pointer;
  z-index: 99;
  color: #fff;
  font-weight: bold;
}

/* Top banner */
.perk-modal-top {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.perk-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.perk-modal-title {
  position: absolute;
  top: 20px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 20px;
  font-weight: 600;
  z-index: 2;
}

#perk-modal-body{
    background-color: #f9f4f8 !important;
}
/* White card */
.perk-modal-card {
  margin: -100px 15px 15px;
  background: white;
  border-radius: 18px;
  padding: 55px 20px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.1);
}

.perk-logo-wrap {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.2);
}

.perk-header-text { 
  position: relative;
  font-family: "Poppins", Sans-serif !important;
  font-size: 28px !important;
  font-weight: bold !important;
  color: #6D37AC !important;
  margin: 0 !important;
}
.travel-wednesday-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 65px;
  height: auto;
  z-index: 5;
}

.perk-desc-text {
  font-family: "Poppins", Sans-serif !important;
  font-size: 18px;
  font-weight: 500;
  color: #aaa;
  margin: 0;
}

/* Breakdown table */
.perk-breakdown {
  margin-top: 20px;
  text-align: left;
}

.perk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  gap: 10px;
}

.perk-row-text {
  font-size: 14px;
  color: #444;
  flex: 1;
  line-height: 18px;
}

.perk-row-value {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  min-width: 70px;
  text-align: right;
}

/* Sections */
.perk-sections {
  padding: 10px 15px;
}

.perk-section {
  background: white;
  border-radius: 15px;
  margin-bottom: 15px;
  padding: 15px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
}

.perk-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.perk-section-header h3 {
  margin: 0;
  font-size: 18px;
  font-family: "Poppins", Sans-serif !important;
  font-weight: 700;
  color: #444;
}

.perk-arrow {
  font-size: 20px;
  transform: rotate(180deg);
  transition: 0.2s;
  color: #777;
}

.perk-arrow.open {
  transform: rotate(0deg);
}

/* collapsible body */
.perk-section-body {
  margin-top: 12px;
  display: none;
}

.perk-section-body.open {
  display: block;
}

/* Banner inside section */
.perk-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3effa;
  padding: 15px;
  border-radius: 14px;
  margin-bottom: 15px;
}

.perk-banner-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.perk-banner-title {
  font-size: 16px;
  font-weight: 700;
  color: #6D37AC;
  line-height: 20px;
  white-space: pre-line;
}

.perk-banner-header {
  font-size: 14px;
  font-weight: 500;
  color: #a89dc2;
}

/* Bullets */
.perk-bullets {
  margin: 0;
  padding-left: 20px;
}

.perk-bullets li {
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
  line-height: 20px;
}

/* Timeline */

.perk-timeline-left {
  position: relative;
  width: 90px;
  display: flex;
  justify-content: center;
}

.perk-timeline-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 18px;
}

/* connector line */
.perk-timeline-row:not(:last-child) .perk-timeline-left::after {
  content: "";
  position: absolute;
  top: 0; 
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 70px;
  background: #e5d9f5;
  border-radius: 2px;
}


.perk-timeline-badge {
  display: inline-block;
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  color: #6D37AC;
  background: #fff;
  min-width: 70px;
  text-align: center;
  position: relative;
  z-index: 100;
}

/* Claim button sticky */
.perk-claim-wrap {
  position: sticky;
  z-index: 1000;
  bottom: 0;
  display: flex;
  justify-content: center;
  background: #fff;
  padding: 15px;
  text-align: center;
  border-top: 1px solid #eee;
}

.perk-claim-btn {
  background: #10DBAC;
  padding: 6px 70px !important;
  border-radius: 20px;
  font-size: 15px !important;
  font-weight: 700;
  color: white !important;
  text-decoration: none;
  text-align: center;
}
.perk-claim-btn.is-thai {
  font-family: "Prompt";
}
.perk-modal-dynamic.is-thai,
.perk-modal-dynamic.is-thai * {
  font-family: "Prompt" !important;
}

.perk-breakdown-hidden {
  display: none;
}

.perk-breakdown-toggle {
  text-align: center;
  margin-top: 15px;
}

.perk-see-more {
  font-size: 15px;
  font-weight: 700;
  color: #6D37AC;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.perk-toggle-icon {
  display: inline-block;
  transform: rotate(180deg);
  transition: 0.2s;
  margin-top: 8px;
}

.perk-toggle-icon.open {
  transform: rotate(0deg);
  margin: 0;
  margin-top: -8px;
}

.perk-tick {
  color: #6D37AC;
  font-weight: 900;
  margin-right: 8px;
  font-size: 15px;
  flex-shrink: 0;
}

.perk-row-text {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 18px;
}

.perk-text {
  font-size: 14px;
  color: #444;
  line-height: 20px;
  margin: 12px 0;
}

.perk-header img.perk-listing-logo-13{
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto;
}

.perk-header img.perk-listing-logo-14{
  width: 65% !important;
  margin: 0 auto;
}
.perk-header img.perk-listing-logo-16{
  width: 78px !important;
  height: 85px !important;
  margin: 0 auto;
}
.perk-header img.perk-listing-logo-4{
  width: 90px !important;
  margin: 0 auto !important;
}
.perk-header img.perk-listing-logo-5506, .perk-header img.perk-listing-logo-5507, .perk-header img.perk-listing-logo-5398{
  width: 87px !important;
  height: 87px !important;
  margin: 0 auto;
}

.perk-header img.perk-listing-logo-5200{
  width: 100px !important;
  height: 100px !important;
  margin: 0 auto;
}

@media (min-width: 769px) and (max-width: 1000px) {
    .perk-header{
        padding: 20px 20px 10px;
        min-height: 165px ;
    }
    .cashback{
        font-size: 15px !important;
    }
    .perk-card{
      width: 31%;
    }
}

@media (max-width: 767px) {
    .perks-container{
        gap: 10px;
    }
    .perk-card {
        width: 45%;
    }
    .perk-header{
        min-height: 165px;
        padding: 20px 20px 10px;
    }
    .perk-header img.perk-listing-logo {
        width: 80%;
        margin: 0 auto;
    }
    .cashback{
        font-size: 14px !important;
    }
    .perk-header-text{
        font-size: 20px !important;
    }
    .perk-timeline-badge{
        padding: 6px 0;
    }
}

@media (max-width: 600px) {
    .perk-header img.perk-listing-logo {
        width: 80%;
        margin: 0 auto;
    }
    .perk-header {
        min-height: 165px;
        padding: 20px 20px 10px;
    }
    .perk-footer{
        padding: 10px 10px 15px;
    }
    .perk-button{
        padding: 5px 8px;
    }
}

@media (max-width: 500px) {
    .perk-header {
        min-height: 165px;
        padding: 20px 10px 10px;
    }
     .perk-header img.perk-listing-logo {
        width: 80%;
        margin: 0 auto;
    }
    .cashback {
        font-size: 11px !important;
    }
    .valid-date{
        font-size: 10px;
        left: 10px;
        top: 10px;
    }
}

@media (max-width: 350px) {
  .perk-button{
    padding: 5px;
  }
}
