/* General Body Styling */
  body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: #f5f5f5;
      margin: 0;
      color: #333;
    }

  /* Form Container */
  #orderForm {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    border-top: 5px solid #bc9200; /* Accent border */
  }

  /* Form Elements - Select, Input */
  #orderForm select,
  #orderForm input[type="number"],
  #orderForm input[type="text"],
  #orderForm input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 18px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    -webkit-appearance: none; /* Remove default select styles for better consistency */
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20viewBox%3D%220%200%204%205%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M2%200L0%202h4zm0%205L0%203h4z%22/%3E%3C/svg%3E'); /* Custom arrow for select */
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 8px 10px;
  }

  #orderForm select:focus,
  #orderForm input[type="number"]:focus,
  #orderForm input[type="text"]:focus,
  #orderForm input[type="tel"]:focus {
    border-color: #efc004;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
  }

  #orderForm select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
  }

  #orderForm .calculator-field-label {
    display: block;
    margin: 0 0 6px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
  }

  /* The inherited artwork is a select chevron; inputs must not appear selectable. */
  #orderForm input[type="number"],
  #orderForm input[type="text"],
  #orderForm input[type="tel"] {
    background-image: none;
  }

  #orderForm .calculator-field-help {
    margin: -11px 0 18px;
    color: #666;
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
  }

  #orderForm .calculator-action-help {
    margin: 7px 0 18px;
  }

  #orderForm .calculator-action-help[hidden] {
    display: none;
  }

  #orderForm .weight-confirmation[hidden] {
    display: none;
  }

  #orderForm .weight-confirmation {
    margin: -7px 0 18px;
    padding: 12px;
    border: 1px solid #d2cdbd;
    border-radius: 8px;
    background: #fffaf0;
    color: #333;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
  }

  #orderForm .weight-confirmation > strong {
    display: block;
    color: #664e14;
    font-size: 14px;
  }

  #orderForm .weight-confirmation p {
    margin: 5px 0 9px;
  }

  #orderForm .weight-confirmation button[type="button"] {
    width: auto;
    margin: 3px 6px 3px 0;
    padding: 7px 10px;
    font-size: 12px;
  }

  #orderForm .weight-confirmation button.weight-confirmation__edit {
    border: 1px solid #bc9200;
    background: transparent;
    color: #664e14;
  }

  #orderForm .weight-confirmation button.weight-confirmation__edit:hover {
    background: #fff;
    transform: none;
  }

  /* Buttons */
  #orderForm button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px; /* Spacing between buttons */
  }

  #orderForm button[type="button"] { /* Get Estimate Button */
    background-color: #bc9200;
    color: white;
  }

  #orderForm button[type="button"]:hover {
    background-color: #664e14;
    transform: translateY(-2px);
  }

  #orderForm button[type="submit"] { /* Confirm Order Button */
    background-color: #28a745; /* Green for confirmation */
    color: white;
  }

  #orderForm button[type="submit"]:hover {
    background-color: #218838;
    transform: translateY(-2px);
  }

  /* Estimate Result */
  #estimate-result {
    text-align: center;
    padding: 15px;
    background-color: #e2f0ff; /* Light blue background for estimate */
    border-radius: 8px;
    margin-bottom: 20px;
    color: #bc9200;
    font-size: 1.1em;
    border: 1px solid #d2cdbd;
  }

  /* Placeholder Styling */
  ::placeholder {
    color: #d2cdbd;
    opacity: 1; /* Firefox fix */
  }

  :-ms-input-placeholder {
    color: #d2cdbd;
  }

  ::-ms-input-placeholder {
    color: #d2cdbd;
  }

  /* Form Title/Header */
  #orderForm h3 {
    text-align: center;
    color: #bc9200;
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: 600;
  }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.gold-price-container:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
    box-shadow: 0 12px 30px rgba(218, 165, 32, 0.4) !important;
}

/* Verified estimate actions only. Keep these rules scoped to the reveal area. */
#orderForm .estimate-actions {
  margin-top: 22px;
  text-align: center;
}

#orderForm .estimate-actions__result {
  padding: 20px 14px;
  margin: 0 0 16px;
  border: 1px solid #d2cdbd;
  border-radius: 8px;
  background: #fffaf0;
  color: #333;
}

#orderForm .estimate-actions__eyebrow,
#orderForm .estimate-actions__context,
#orderForm .estimate-actions__note,
#orderForm .estimate-actions__support {
  margin: 0;
}

#orderForm .estimate-actions__eyebrow {
  color: #664e14;
  font-size: 16px;
  font-weight: 700;
}

#orderForm .estimate-actions__price {
  margin: 7px 0;
  color: #bc9200;
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 800;
  line-height: 1.15;
}

#orderForm .estimate-actions__amount {
  white-space: nowrap;
}

#orderForm .estimate-actions__context {
  font-size: 14px;
}

#orderForm .estimate-actions__note {
  margin-top: 14px;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}

#orderForm button.estimate-actions__primary {
  margin: 0;
  background: #bc9200;
  color: #fff;
}

#orderForm button.estimate-actions__primary:hover {
  background: #664e14;
}

#orderForm button.estimate-actions__primary:disabled {
  background: #766f5e;
  cursor: default;
  transform: none;
}

#orderForm .estimate-actions__support {
  margin-top: 7px;
  color: #555;
  font-size: 12px;
}

#orderForm .estimate-actions__secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 14px;
}

#orderForm .estimate-actions__secondary button[type="button"] {
  margin: 0;
  padding: 8px;
  background: transparent;
  color: #664e14;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#orderForm .estimate-actions__secondary button[type="button"]:hover {
  background: #fffaf0;
  transform: none;
}

#orderForm .estimate-actions__pledged {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e7e2d5;
  color: #666;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

#orderForm .estimate-actions__pledged span,
#orderForm .estimate-actions__pledged strong {
  display: block;
}

#orderForm .estimate-actions__pledged strong {
  color: #664e14;
  text-decoration: underline;
}

#orderForm .estimate-actions__status {
  margin-top: 14px;
  color: #333;
  font-size: 13px;
  line-height: 1.45;
}

#orderForm .estimate-video[hidden] {
  display: none;
}

#orderForm .estimate-video {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

#orderForm .estimate-video__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
}

#orderForm .estimate-video__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding-top: 44px;
  border-radius: 10px;
  background: #111;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

#orderForm button.estimate-video__close {
  position: absolute;
  top: 2px;
  right: 8px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

#orderForm .estimate-video__frame {
  aspect-ratio: 16 / 9;
}

#orderForm .estimate-video__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0 0 10px 10px;
}

body.estimate-video-open {
  overflow: hidden;
}

@media (max-width: 768px) {
    .gold-price-container {
        margin: 10px 5px !important;
        padding: 15px !important;
    }
    .gold-price-container div[style*="font-size: 28px"] {
        font-size: 24px !important;
    }
}
