.required-icon {
    font-size: 25px !important;
    color: #911919 !important;
    margin-right: 10px;
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.form-group select{
    padding: 0px !important;
}
.modal-body {
    text-align: center;
}
.modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 1rem);
}

.loader {
    display: none;
    margin: 20px auto;
}

.form-select {
    width: 20% !important;
}

#phone{
    flex-grow: 1;
}

.form-group .input-group {
    display: flex;
    flex-direction: row;
    width: 60%;
}

/* Updated submit button style for a more modern and secure feel */
.submit-button {
    background-color: #7E2681;
    color: white;
    padding: 15px; /* Increased padding for a larger touch target */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 60%;
    font-size: 1.2em; /* Make text larger */
    font-weight: bold;
    display: flex; /* Use flexbox to align icon and text */
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.2s;
    margin-bottom: 15px; /* Add space below the button */
}

.submit-button:hover {
    background-color: #5a185c;
    transform: scale(1.02); /* Add a subtle zoom effect on hover */
}

/* Style for the lock icon inside the button */
.submit-button .fa-lock {
    margin-right: 10px;
}

/* New container for the security information and card icons */
.secure-payment-info {
    width: 60%;
    text-align: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05); /* A very subtle background to make it stand out */
    border-radius: 8px;
    border: 1px solid #555; /* A darker border */
}

/* Style for the credit card icons */
.card-icons {
    margin-bottom: 15px;
    font-size: 32px;
    color: #ccc;
}

.card-icons i {
    margin: 0 10px; /* Space out the icons */
    transition: color 0.3s ease;
}

.card-icons i:hover {
    color: #ffffff; /* Highlight icons on hover */
}

/* Style for the security guarantee text */
.secure-payment-info p {
    font-size: 13px;
    color: #b0b0b0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style for the shield icon */
.secure-payment-info .fa-shield-alt {
    margin-right: 8px;
    color: #28a745; /* A reassuring green color */
}


/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 42, 48, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px;
  }

  .popup-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* Popup Container */
  .popup-container {
    background-color: #0E2A30;
    color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #7E2681;
    max-width: 540px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }

  .popup-overlay.show .popup-container {
    transform: scale(1);
  }

  .popup-container h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
  }

  .popup-container p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
  }

  /* Dashed Divider */
  .popup-divider {
    border: 0;
    border-top: 2px dashed rgba(126, 38, 129, 0.5); /* Use theme color with opacity */
    margin: 25px 0;
  }

  /* Contact Buttons Container */
  .contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
  }

  .contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex: 1; /* Makes buttons grow to fill space */
    min-width: 120px; /* Prevents buttons from becoming too small */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  .contact-btn i {
    font-size: 28px;
    margin-bottom: 8px;
  }

  /* Button Colors */
  .btn-whatsapp { background-color: #25D366; }
  .btn-telegram { background-color: #2196F3; }
  .btn-email    { background-color: #EF4444; }

  /* Close Button */
  #close-popup-btn {
    margin-top: 30px;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  #close-popup-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
  }


@media (max-width: 800px) {
    body {
        font-size: 10px; /* 屏幕宽度小于800px时字体大小 */
    }

    .form-group input,
    #product-select,
    .form-group .input-group,
    .submit-button,
    .secure-payment-info {
        width: 80% !important;
    }

    .form-select {
        min-width:200px !important;
    }
}

  /* Responsive adjustments for mobile */
@media (max-width: 480px) {
    .popup-container h2 {
      font-size: 20px;
    }
    .popup-container p {
      font-size: 14px;
    }
    .contact-buttons {
      gap: 10px;
    }
    .contact-btn {
      min-width: 100px;
      padding: 12px 8px;
    }
    .contact-btn i {
      font-size: 24px;
    }
  }

  .paypal-notice {
    width: 60%;
    margin: 25px auto 0; /* 在表单下方增加间距并水平居中 */
    padding: 15px;
    background-color: rgba(43, 62, 79, 0.5); /* 使用一个柔和、匹配主题的背景色 */
    border: 1px solid #3a5f7e;
    border-radius: 8px;
    text-align: center;
}

.paypal-notice p {
    margin: 0;
    color: #c5d9e8; /* 使用易于阅读的浅色文本 */
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* 在小屏幕上允许换行 */
}

.paypal-notice .fa-paypal {
    color: #009cde; /* 官方PayPal蓝色图标 */
    font-size: 22px;
    margin-right: 12px;
}

.paypal-notice .contact-link {
    color: #38b6ff; /* 使用明亮的蓝色突出链接 */
    text-decoration: underline;
    font-weight: bold;
    margin-left: 5px;
    transition: color 0.3s;
}

.paypal-notice .contact-link:hover {
    color: #ffffff; /* 鼠标悬停时变为白色 */
}

/* 响应式调整 */
@media (max-width: 800px) {
    .paypal-notice {
        width: 80% !important; /* 在小屏幕上匹配表单宽度 */
    }
}