/* =============================================*/
/* INITIAL COMMISSION FORM */
/* ============================================ */
.custom-commission-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
}

.custom-commission-form {
  background: var(--background-color);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #e5e5e5);
}

.custom-commission-form h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group label {
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

/* Dropdown Colors */
html.has-dark-text .form-group select {
  color-scheme: light;
}
html.has-light-text .form-group select {
  color-scheme: dark;
}

.form-group select {
  background-color: var(--background-color);
  color: inherit;
}

.form-group select option {
  background-color: var(--background-color);
  color: inherit;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group input[type="file"] {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1.5rem;
  width: 100%;
  background-color: transparent;
  color: inherit;
}

.form-group input[type="file"] {
  padding: 8px;
  cursor: pointer;
}

.form-hint {
  font-size: 1.2rem;
  opacity: 0.7;
  margin-top: 5px;
}

.file-preview-container {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05); /* Subtle dark mode highlight */
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-color, #333);
  font-size: 1.3rem;
}

.remove-file-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0 5px;
  transition: opacity 0.2s;
}

.remove-file-btn:hover {
  opacity: 0.7;
}

/* ============================ */
/* CUSTOM FILE UPLOAD BUTTON UI */
/* ============================ */

/* Hide the native browser input */
.hidden-file-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

/* Style the original label title so it still looks like a heading */
.form-label-title {
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 5px;
  display: block;
}

/* Style the new label to look like a sleek, dashed button */
.custom-file-upload-btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: transparent;
  color: inherit;
  border: 1px dashed var(--border-color, #ccc);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.4rem;
  text-align: center;
  transition:
    background-color 0.2s,
    border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.custom-file-upload-btn:hover {
  background-color: rgba(255, 255, 255, 0.05); /* Slight highlight on hover */
  border-color: #ffffff; /* Brighter border on hover */
}

/* =========== */
/* CHECKBOX UI */
/* =========== */
.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 400; /* Overrides the bold label default */
  line-height: 1.4;
}

.custom-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0; /* Overrides default browser margins */
  margin-top: 3px; /* Slightly adjusted to align with line-height */
  cursor: pointer;
  flex-shrink: 0; /* THIS PREVENTS THE SQUISHING */
}

/* Mobile Adaptations */
@media (max-width: 767px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .half-width {
    width: 100%;
  }
  .custom-commission-form {
    padding: 20px 15px;
  }
}

/* Interactive Face Map Markers */
.face-spot-marker {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #eab308; /* Matches your accent color */
  border-radius: 50%;
  transform: translate(
    -50%,
    -50%
  ); /* Ensures the center of the dot is at the exact click point */
  pointer-events: none; /* Prevents the dot from blocking subsequent clicks */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
