/* =========================================
   1. Grid Layout (Voucher Cards)
   ========================================= */
   .vm-voucher-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* কার্ডগুলোর মাঝখানের গ্যাপ */
    margin: 40px auto;
    justify-content: center; /* রো-এর কার্ডগুলোকে মাঝখানে আনবে */
    max-width: 1200px;
}

.vm-voucher-card {
    /* overflow: hidden; */
    width: calc(33.333% - 30px);
    box-sizing: border-box;
    border: 1px solid #777; 
    padding: 10px; 
    background: #fff;
    text-align: left; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    transition: transform 0.3s ease, box-shadow
}

.vm-voucher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.vm-voucher-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.vm-voucher-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.vm-voucher-card .vm-detai {
  font-size: 16px;
  font-weight: 600;
  color: #555;
  margin: 0 0 15px 0;
  line-height: 1.5;
  flex-grow: 1; 
}

.vm-voucher-card .vm-min {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
  line-height: 1.7em;
}

.vm-voucher-card .vm-price {
  font-size: 26px;
  font-weight: 600; 
  color: #222;
  margin: 0 0 15px 0;
  padding: 0;
  line-height: 1;
  font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}

.vm-open-btn, #submit_voucher {
  width: 100%;
  padding: 12px 0;
  background: #7a8778; 
  color: #fff;
  border: none;
  border-radius: 4px; 
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
  margin-top: auto; 
}
.vm-open-btn:hover, #submit_voucher:hover {
  background: #5a785a; 
}

/* Responsiveness */
@media (max-width: 900px) {
  .vm-voucher-card { width: calc(50% - 30px); }
}
@media (max-width: 600px) {
  .vm-voucher-card { width: 100%; }
}




/* =========================================
   2. Modal Styling
   ========================================= */
.vm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    backdrop-filter: blur(4px); /* Blur effect */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.vm-modal-inner {
    background: #fff;
    width: 100%;
    max-width: 700px; /* Optimal width for form */
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto; /* Scroll if form is long */
}

.vm-modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  width: 30px;
  height: 30px;
  font-size: 28px;
  line-height: 30px;
  color: #333;
  background: #fff; /* White background to stand out */
  border: 1px solid #ddd;
  border-radius: 50%; /* Circular */
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px; /* Align text center */
}

.vm-modal-close:hover {
  background: #f0f0f0;
  color: red;
  border-color: red;
}

.vm-modal-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.vm-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.vm-modal-header p {
    margin: 5px 0 0;
    color: #777;
    font-size: 14px;
}


/* Recipient Wrapper Animation */
#vm-recipient-wrapper {
  transition: all 0.3s ease;
}



/* =========================================
   3. Contact Form 7 Styling (The Pretty Part)
   ========================================= */

/* Labels */
.vm-modal-form label {
    font-weight: 600;
    color: #444;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

/* Inputs (Text, Email, Tel, Number, Textarea) */
.vm-modal-form input[type="text"],
.vm-modal-form input[type="email"],
.vm-modal-form input[type="tel"],
.vm-modal-form input[type="number"],
.vm-modal-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background: #fdfdfd;
    box-sizing: border-box; /* Important for width */
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

/* Focus State */
.vm-modal-form input:focus,
.vm-modal-form textarea:focus {
    border-color: #6B8E6B;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 142, 107, 0.1);
}

/* Checkbox (Same as buyer) */
.vm-modal-form input[type="checkbox"] {
    accent-color: #6B8E6B;
    transform: scale(1.1);
    margin-right:
}

#submit_voucher {
  font-size: 20px;
  text-transform: uppercase;
  margin-top: 15px; 
  -webkit-appearance: none;
  appearance: none;
  width: auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* =========================================
   Response Message Styling (FIXED)
   ========================================= */

/* 1. Hide by default */
.wpcf7-response-output {
  display: none; /* Hidden by default */
  margin: 20px 0 20px 0 !important;
  border-radius: 6px;
  padding: 15px !important;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent; /* Keeps border space */
}

/* 2. Show only when form status changes (Controlled via CSS) */
/* When form is sent, invalid, failed, etc., display becomes block */
form.sent .wpcf7-response-output,
form.invalid .wpcf7-response-output,
form.failed .wpcf7-response-output,
form.unaccepted .wpcf7-response-output {
  display: block !important;
}

/* Success Message Color */
form.sent .wpcf7-response-output {
  border-color: #6B8E6B !important;
  background-color: #f0f7f0;
  color: #3c763d;
}

/* Error Message Color */
form.invalid .wpcf7-response-output,
form.failed .wpcf7-response-output,
form.unaccepted .wpcf7-response-output {
  border-color: #d9534f !important;
  background-color: #fdf7f7;
  color: #a94442;
}


/* =========================================
   Delivery Radio Boxes Styling (FIXED)
   ========================================= */

.delivery-radios input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.delivery-radios .wpcf7-list-item {
  display: inline-block !important; 
  width: 32%; 
  margin: 0 1% 10px 0 !important;
  vertical-align: top;
  box-sizing: border-box;
}
.delivery-radios .wpcf7-list-item.last {
  margin-right: 0 !important;
}


.delivery-radios .wpcf7-list-item-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 5px;
  height: 110px; 
  
  border: 2px solid #ccc;
  background-color: #fff;
  border-radius: 8px;
  
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  transition: all 0.2s ease;
  box-sizing: border-box;
}


.delivery-radios .wpcf7-list-item-label:hover {
  border-color: #888;
  background-color: #f9f9f9;
}


.delivery-radios input[type="radio"]:checked + .wpcf7-list-item-label {
  border-color: #6B8E6B; 
  background-color: #f0f7f0;
  color: #6B8E6B;
  box-shadow: 0 4px 8px rgba(107, 142, 107, 0.2);
}


.delivery-radios .wpcf7-list-item-label::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.7; 
}

.delivery-radios input[type="radio"]:checked + .wpcf7-list-item-label::before {
  opacity: 1;
  /* CSS Filter to turn black icon to green #6B8E6B roughly */
  filter: invert(48%) sepia(13%) saturate(1376%) hue-rotate(86deg) brightness(96%) contrast(89%);
}



.delivery-radios .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path></svg>');
}


.delivery-radios .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>');
}


.delivery-radios .wpcf7-list-item:nth-child(3) .wpcf7-list-item-label::before {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23333' stroke-width='2' fill='none' fill-rule='evenodd' stroke-linecap='round'%3E%3Cpath d='M19 9.8c0 3.96-5.34 8.78-6.7 9.94a1 1 0 0 1-1.22 0C9.66 18.58 4.33 13.76 4.33 9.8 4.33 6.04 7.76 3 12 3s7.67 3.04 7.67 6.8z'/%3E%3Ccircle cx='12' cy='10' r='2'/%3E%3C/g%3E%3C/svg%3E");
}


@media (max-width: 600px) {
  .delivery-radios .wpcf7-list-item {
      width: 100%;
      margin-right: 0 !important;
      margin-bottom: 15px;
  }
}


/* =========================================
   4. Disclaimer / Info Section Styling
   ========================================= */

   .vm-disclaimer-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: left;
    color: #444;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.vm-disc-section h4 {
    color: #7a8778; /* Theme Green */
    font-family: 'Playfair Display', Georgia, serif; /* Serif Font like image */
    font-size: 22px;
    margin-bottom: 10px;
    margin-top: 25px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}
.vm-disc-section p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #555;
}
.vm-disc-section p.vm-important {
  margin-bottom: 0;
  padding-bottom: 10px !important;
  display: inline;
}
.vm-small {
    font-size: 13px;
    font-style: italic;
    color: #666;
}
.vm-disc-list {
    margin: 10px 0 15px 20px;
    padding: 0;
    list-style-type: disc;
}
.vm-disc-list li {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 5px;
}
.vm-important {
    background: #f9f9f9;
    padding: 10px;
    border-left: 3px solid #7a8778;
    font-size: 13px;
}
.vm-disc-footer {
    margin-top: 30px;
    text-align: center;
    background-color: #fcfcfc;
    padding: 20px;
    border-radius: 8px;
}
.vm-disc-footer h3 {
    color: #7a8778;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}
.vm-disc-footer p {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}


.vm-static-delivery-grid {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: space-between;
}

.vm-static-box {
  border: 2px solid #333; 
  padding: 20px 10px;
  text-align: center;
  flex: 1; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.vm-static-box span {
  font-weight: 400;
  margin-top: 5px;
  font-size: 13px;
}

.vm-static-box .vm-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.email-box .vm-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"/><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"/></svg>');
}

.postal-box .vm-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>');
}

.pickup-box .vm-icon {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23333' stroke-width='2' fill='none' fill-rule='evenodd' stroke-linecap='round'%3E%3Cpath d='M19 9.8c0 3.96-5.34 8.78-6.7 9.94a1 1 0 0 1-1.22 0C9.66 18.58 4.33 13.76 4.33 9.8 4.33 6.04 7.76 3 12 3s7.67 3.04 7.67 6.8z'/%3E%3Ccircle cx='12' cy='10' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

@media (max-width: 600px) {
  .vm-static-delivery-grid {
      flex-direction: column;
  }
}