/* Stylized form inputs with red checkmarks */

/* Style checkboxes and radio buttons */
.order-form input[type="checkbox"],
.order-form input[type="radio"],
.contact-method input[type="checkbox"],
.style-selection input[type="checkbox"],
.payment-format-selection input[type="radio"],
.size-selection input[type="radio"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  border: 3px solid #0a0a0a !important;
  background: #fafafa !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.2s !important;
  flex-shrink: 0 !important;
  margin-right: 0.5rem !important;
  vertical-align: middle !important;
  display: inline-block !important;
  opacity: 1 !important;
  border-radius: 0 !important;
}

/* Hover effect */
.order-form input[type="checkbox"]:hover,
.order-form input[type="radio"]:hover,
.contact-method input[type="checkbox"]:hover,
.style-selection input[type="checkbox"]:hover,
.payment-format-selection input[type="radio"]:hover,
.size-selection input[type="radio"]:hover {
  border-color: #ff0033 !important;
  transform: scale(1.1) rotate(5deg) !important;
  box-shadow: 0 0 0 2px rgba(255, 0, 51, 0.2) !important;
}

/* Active/click effect */
.order-form input[type="checkbox"]:active,
.order-form input[type="radio"]:active,
.contact-method input[type="checkbox"]:active,
.style-selection input[type="checkbox"]:active,
.payment-format-selection input[type="radio"]:active,
.size-selection input[type="radio"]:active {
  transform: scale(0.95) !important;
}

/* Checked state - keep white background, black border */
.order-form input[type="checkbox"]:checked,
.order-form input[type="radio"]:checked,
.contact-method input[type="checkbox"]:checked,
.style-selection input[type="checkbox"]:checked,
.payment-format-selection input[type="radio"]:checked,
.size-selection input[type="radio"]:checked {
  background: #fafafa !important;
  border-color: #0a0a0a !important;
  border-width: 3px !important;
}

/* Red checkmark */
.order-form input[type="checkbox"]:checked::after,
.order-form input[type="radio"]:checked::after,
.contact-method input[type="checkbox"]:checked::after,
.style-selection input[type="checkbox"]:checked::after,
.payment-format-selection input[type="radio"]:checked::after,
.size-selection input[type="radio"]:checked::after {
  content: "✓" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #ff0033 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  display: block !important;
}

/* Focus state */
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Text inputs styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  border: 3px solid var(--black) !important;
  background: var(--white) !important;
  transition: all 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--black) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* File upload button */
.file-upload-label {
  transition: all 0.2s !important;
}

.file-upload-label:hover {
  border-color: var(--red) !important;
}

/* Submit button */
.submit-btn {
  transition: all 0.2s !important;
}

.submit-btn:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
  transform: translate(3px, -3px) !important;
  box-shadow: -3px 3px 0 var(--black) !important;
}

.submit-btn:active {
  transform: translate(0, 0) !important;
  box-shadow: none !important;
}

/* Show checkboxes and radios, hide old custom symbols */
input[type="checkbox"],
input[type="radio"] {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.checkbox-custom,
.style-checkbox,
.payment-radio,
.size-radio {
  display: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  /* Disable hover effects on mobile */
  .order-form input[type="checkbox"]:hover,
  .order-form input[type="radio"]:hover,
  .contact-method input[type="checkbox"]:hover,
  .style-selection input[type="checkbox"]:hover,
  .payment-format-selection input[type="radio"]:hover,
  .size-selection input[type="radio"]:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #0a0a0a !important;
  }
  
  /* Keep active effect */
  .order-form input[type="checkbox"]:active,
  .order-form input[type="radio"]:active,
  .contact-method input[type="checkbox"]:active,
  .style-selection input[type="checkbox"]:active,
  .payment-format-selection input[type="radio"]:active,
  .size-selection input[type="radio"]:active {
    transform: scale(0.9) !important;
    border-color: #ff0033 !important;
  }
  
  input[type="checkbox"],
  input[type="radio"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border-width: 2px !important;
  }

  input[type="checkbox"]:checked::after,
  input[type="radio"]:checked::after {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  /* Disable hover effects on mobile */
  .order-form input[type="checkbox"]:hover,
  .order-form input[type="radio"]:hover,
  .contact-method input[type="checkbox"]:hover,
  .style-selection input[type="checkbox"]:hover,
  .payment-format-selection input[type="radio"]:hover,
  .size-selection input[type="radio"]:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #0a0a0a !important;
  }
  
  /* Keep active effect */
  .order-form input[type="checkbox"]:active,
  .order-form input[type="radio"]:active,
  .contact-method input[type="checkbox"]:active,
  .style-selection input[type="checkbox"]:active,
  .payment-format-selection input[type="radio"]:active,
  .size-selection input[type="radio"]:active {
    transform: scale(0.9) !important;
    border-color: #ff0033 !important;
  }
  
  input[type="checkbox"],
  input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border-width: 2px !important;
  }

  input[type="checkbox"]:checked::after,
  input[type="radio"]:checked::after {
    font-size: 16px !important;
  }
}


/* Increase form section headings */
.contact-label,
.payment-format-label,
.style-selection-label,
.size-selection-label {
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px !important;
}

@media (max-width: 768px) {
  .contact-label,
  .payment-format-label,
  .style-selection-label,
  .size-selection-label {
    font-size: 0.95rem !important;
  }
}

@media (max-width: 480px) {
  .contact-label,
  .payment-format-label,
  .style-selection-label,
  .size-selection-label {
    font-size: 0.9rem !important;
  }
}


/* Yellow highlight on tap for mobile */
@media (max-width: 768px) {
  .checkbox-label,
  .style-option,
  .payment-format-option,
  .size-option {
    -webkit-tap-highlight-color: rgba(255, 237, 0, 0.3) !important;
    tap-highlight-color: rgba(255, 237, 0, 0.3) !important;
  }
  
  .checkbox-label:active,
  .style-option:active,
  .payment-format-option:active,
  .size-option:active {
    background: rgba(255, 237, 0, 0.2) !important;
    transition: background 0.1s !important;
  }
}


/* Remove yellow hover background from labels */
.checkbox-label:hover,
.style-option:hover,
.payment-format-option:hover,
.size-option:hover {
  background: transparent !important;
}
