/* Stripe Element Styling */
.StripeElement {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.428571429;
  color: #555555;
  background-color: #fff;
  background-image: none;
  border: 1px solid rgba(34, 36, 38, 0.15);
  border-radius: 4px;
  box-shadow: none;
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

.StripeElement--focus {
  border-color: #85b7d9;
  box-shadow: 0 0 0 0 rgba(34, 36, 38, 0.35) inset;
}

.StripeElement--invalid {
  border-color: #e0b4b4;
  background-color: #fff6f6;
}

.StripeElement--webkit-autofill {
  background-color: #fefde5 !important;
}

#card-errors {
  color: #9f3a38;
  margin-top: 0.5em;
  font-size: 0.9em;
}

/* Form styling */
#payment-form textarea {
  width: 100%;
}

#payment-form .ui.segment {
  padding: 2em;
}

#payment-form h2 {
  margin-top: 0;
  margin-bottom: 0.5em;
  color: #111;
}

#payment-form .ui.segment > p {
  color: #666;
  margin-bottom: 1.5em;
}

/* Required field indicator */
.ui.form .required.field > label::after {
  content: ' *';
  color: #db2828;
}

/* Focus styling consistent with wi2020 */
#payment-form input:focus,
#payment-form select:focus,
#payment-form textarea:focus {
  outline: 2px solid #210299;
  outline-offset: 2px;
}

/* Amount input - ensure proper width inside labeled input */
.ui.labeled.input input[type="number"] {
  width: 100% !important;
}

/* Button styling to match wi2020 primary color */
#payment-form .ui.primary.button {
  background-color: #3704ff;
  margin-top: 1em;
}

#payment-form .ui.primary.button:hover {
  background-color: #2c03cc;
}

#payment-form .ui.primary.button:focus {
  outline: 2px solid #210299;
  outline-offset: 2px;
}

#payment-form .ui.primary.button.disabled,
#payment-form .ui.primary.button:disabled {
  background-color: #999;
  cursor: not-allowed;
}

/* Powered by Stripe link */
.powered-by img {
  max-width: 150px;
  opacity: 0.7;
}

.powered-by a:hover img {
  opacity: 1;
}

/* Success message styling */
.ui.success.message .header {
  font-size: 1.5em;
}

.ui.success.message code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2em 0.5em;
  border-radius: 3px;
  font-family: monospace;
}

/* Dropdown fix for Fomantic inside labeled input */
.ui.form .field .ui.selection.dropdown {
  min-width: 100%;
}

/* Small text styling */
.ui.form label small {
  font-weight: normal;
  color: #666;
}

.ui.default.dropdown:not(.button) > .text, .ui.dropdown:not(.button) > .default.text {
  color: black !important; 
}

