/* Form  */
:root {
  --input-padding: 20px 15px;
}

.form-container {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: var(--dark-blue);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
}

.form {
  margin-top: 40px;
  font-size: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column-reverse;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  text-align: left;
  margin-top: 7px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-bottom: 1px solid var(--blue);
  padding: var(--input-padding);
  font-size: inherit;
  color: var(--text-color);
  transition: border-color 0.3s ease;
  border-radius: 15px 15px 0 0;
}

#mobile {
  border-radius: 0 15px 0 0;
}

#country {
  border-radius: 15px 0 0 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
.currency-input input:focus {
  outline: none;
  border-bottom-color: #5b9fd8;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active
{
  -webkit-text-fill-color: var(--text-color) !important; 
}

input:-webkit-autofill, select:-webkit-autofill{
  transition: background-color 5000s ease-in-out 0s;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  text-align: left;
}

select:focus {
  outline: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--blue) !important;
}




select option {
  background: var(--blue);
  color: var(--text-color);
  /* Additional Windows-specific fixes */
  background-color: var(--blue);
  padding: 8px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-bottom: 1px solid var(--blue);
  padding: var(--input-padding);
  padding-right: 50px; /* 👈 space for arrow */

  font-size: inherit;
  color: var(--text-color);
  cursor: pointer;
  border-radius: 15px 15px 0 0;

  /* custom arrow */
  background-image: url("/assets/svg/down-arrow.svg");
  background-repeat: no-repeat;
  background-position: right 20px center; /* 👈 padded arrow */
  background-size: 16px;

  /* Force color scheme for better cross-platform consistency */
  color-scheme: dark;
}

/* Windows-specific override using media query */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  select option {
    background: var(--blue) !important;
    color: var(--text-color) !important;
  }
}

/* Additional fallback for Windows Chrome/Edge */
select option:checked {
  background: var(--blue);
  color: var(--text-color);
}




.single-line-input {
  display: flex;
}

.amount-row {
  display: flex;
  border-radius: 15px;
  border: 1px solid var(--blue);
  justify-content: space-around;
  background: var(--blue);
}

.amount-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-color);
  /* padding: var(--input-padding); */
  padding: 18px 0px;
  font-size: inherit;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-grow: 1;
  margin: 2px;
}

.currency-input {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-bottom: 1px solid var(--blue);
  flex: 1;
  border-radius: 15px 0 0 0;
}

.currency-symbol {
  padding: 15px 5px 15px 15px;
  color: var(--text-color);
  font-size: inherit;
}

.currency-input input {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 20px 0;
}

.currency-select {
  border-radius: 0 15px 0 0;
}

.form-submit-row {
  float: right;
  margin: auto;
}

.form-submit-row p {
  font-size: clamp(12px, 0.729vw, 14px);
  text-align: center;
}

.submit-btn {
  float: right;
  background: var(--blue);
  border: none;
  color: var(--text-color);
  padding: 20px 80px;
  font-size: inherit;
  border-radius: 15px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 7px;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

/* ------------ Toggle Group ------------ */

.form-row-type-toggle .form-group {
  align-items: center;
}

.toggle-group {
  display: flex;
  justify-content: center;
  background: var(--blue);
  padding: 4px;
  border-radius: 15px;
  gap: 4px;
}

/* .toggle-group.small {
    background: var(--blue);
    width: fit-content;
    margin-bottom: 10px;
  } */

.toggle-btn {
  /* border: none; */
  padding: 20px 50px;
  border-radius: 12px;
  background: transparent;
  color: var(--text-color);
  font-size: inherit;
  cursor: pointer;
  font-weight: 500;
  transition: 0.25s ease;
  border: 1px solid transparent; 
}

.toggle-btn.active,
.amount-btn.active {
  background: #1e5fa5;
  border: 1px solid var(--darkblue);
}

.line-seperator{
  position: relative;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.line-seperator span{
  position: absolute;
    border-left: 1px solid white;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 70%;
}







 /* RADIO (already compatible with previous section) */
 .radio-option {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 10px 0;
}

.radio-option input[type="radio"] {
  appearance: none;
  width: 35px;
  /* height: 35px; */
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: transparent;
  position: relative;
  cursor: pointer;
}

.radio-option input[type="radio"]:checked::after {
  content: "";
  width: 18px;
  /* height: 18px; */
  aspect-ratio: 1/1;
  background: var(--blue);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radio-option label {
  line-height: 1.4;
  cursor: pointer;
}




/* Connect Us */

/* CHECKBOX */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  cursor: pointer;
}

.checkbox-wrapper input {
  display: none;
}

.custom-checkbox {
  width: 28px;
  height: 28px;
  border: 2px solid var(--blue);
  flex-shrink: 0;
  position: relative;
}

.checkbox-wrapper input:checked+.custom-checkbox::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--blue);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


@media (max-width: 768px) {
.radio-option input[type="radio"] {
width: 25px;
/* height: 25px; */
aspect-ratio: 1/1;
}

.radio-option input[type="radio"]:checked::after {
 
  width: 15px;
  /* height: 15px; */
  aspect-ratio: 1/1;
}


.custom-checkbox {
  width: 20px;
  height: 20px;

}

.checkbox-wrapper input:checked+.custom-checkbox::after {
  width: 11px;
  height: 11px;
 
}

.donor-form br{
  display: block !important;
}

}



/* ------------ Kids Icon ------------ */

.icon-and-note-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 1rem auto;
}

.kids-families-icon img {
  height: 100px;
  width: auto;
  /* margin-top: 20px; */
}

.thank-you-firework-icon {
  margin: auto;
  width: 50%;
}

@media (max-width: 768px) {
  :root {
    --input-padding: 15px 10px;
  }

  .currency-input input {
    padding: 15px 0;
  }

  .toggle-btn {
    padding: 15px 20px;
  }

  .submit-btn {
    padding: 15px;
  }

  .amount-btn {
    padding: 15px 0px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-row {
    margin-bottom: 30px;
  }

  .kids-families-icon img {
    height: 80px;
  }
}
