

/* Valid input */
input:valid,
textarea:valid {
  border: 2px solid #28a745; /* green */
}

/* Invalid input */
input:invalid,
textarea:invalid {
  border: 2px solid #dc3545; /* red */
}

/* Optional: when focused */
input:focus:valid,
textarea:focus:valid {
  box-shadow: 0 0 4px #28a74588;
}

input:focus:invalid,
textarea:focus:invalid {
  box-shadow: 0 0 4px #dc354588;
}


body.modal-open {
  overflow: hidden;
}

.modal {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background-color: #fff;
  color: #111;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #222;
  text-align: center;
}

.modal-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.modal-content label {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
  margin-top: 0.3rem;
  letter-spacing: 0.3px;
  color: #555;
  opacity: 0.85;
  display: block;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 1rem;
}

.modal-content button[type="submit"] {
  width: 100%;
  margin-top: 1.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1a1a1a, #444);
  border: none;
  border-radius: 10px;
  transition: transform 0.2s ease, background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
}

.modal-content button[type="submit"]:hover {
 background: linear-gradient(135deg, #000, #222);
}

.close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.modal.show {
  visibility: visible;
  opacity: 1;
}


/* Modern Form Enhancements */
.modern-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 400;
  margin-bottom: 0.25rem;
  color: #222;
}

.form-group input,
.form-group textarea {
  padding: 0.35rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: border-color 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #444;
}

.submit-button {
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.submit-button:hover {
  background: linear-gradient(135deg, #000, #222);
}

/* Delivery Fee Display */
.delivery-fee-group div#deliveryFee {
  font-weight: bold;
  background-color: #f2f2f2;
  padding: 0.6rem;
  border-radius: 6px;
  margin-top: 0.1rem;
  font-size: 0.85rem;
  text-align: center;
  color: #111;
}


/*Error Message on form*/
.error-message {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}



/*confirmation toast*/
.confirmation-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f1f1f;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
  z-index: 9999;
  animation: fadeSlideUp 0.4s ease-out;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}


/*tool tip*/
.info-icon {
  position: relative;
  cursor: pointer;
  font-size: 1rem;
  display: inline-block;
}

.info-icon::after {
  content: "Based on delivery region and destination country.";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: normal;
  font-size: 0.75rem;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  width: max-content;
  max-width: 200px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 50;
}

.info-icon.visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}


.brand-logo img {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.footer-logo {
  margin-top: 1rem;
  text-align: center;
}

.footer-logo img {
  width: 80px;
  height: auto;
  opacity: 0.8;
}


.order-summary {
  border-top: 1px solid #eee;
  padding-top: 2px;
  margin-top: 5px;
  font-size: 12px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
}
.summary-row.total {
  font-size: 14px;
  color: #2c3e50;
}

.cta-button.secondary {
  background: #f5f5f5;
  color: #8e44ad;
  border: 2px solid #8e44ad;
  margin-left: 10px;
}

.cta-button.secondary:hover {
  background: #8e44ad;
  color: #fff;
}

.delivery-method-options{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:4px;
}

.delivery-method-options label{
    display:inline-flex !important;
    align-items:center;
    gap:5px;
    white-space:nowrap;
    margin:0 !important;
    font-size:0.8rem;
    font-weight:500;
}

.delivery-method-options input[type="radio"]{
    width:14px !important;
    height:14px !important;
    margin:0 !important;
    padding:0 !important;
}

.delivery-pill{
    border:1px solid #ddd;
    border-radius:20px;
    padding:6px 12px;
    cursor:pointer;
}

.delivery-pill input{
    margin-right:4px;
}

.delivery-notice{
    font-size: 0.8rem;
    font-style: italic;
    color: #777;
    margin-top: 4px;
    line-height: 1.4;
}