/* NATIVE FORMS COMPONENT */

.native-form {
  width: 100%;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.native-form__group {
  margin-bottom: 20px;
  text-align: left;
}

.native-form__label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: #303030;
}

.native-form__label--required::after {
  content: " *";
  color: #c23934;
}

.native-form .text-input {
  width: 100%;
  height: 44px;
  padding: 0 20px;
  border-radius: 4px;
  background-color: #f8f9fa;
  border: 2px solid #d8dde6;
  font-size: 14px;
  color: #303030;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.native-form .text-input::placeholder {
  opacity: 1;
  color: #9ca3af;
  transition: opacity 0.2s ease;
}

.native-form .text-input:hover {
  border-color: #a3afc4;
}

.native-form .text-input:focus {
  background-color: #ffffff;
  border-color: #fd3f0f;
}

.native-form .text-input:focus::placeholder {
  opacity: 0;
}

.native-form .textarea {
  color: #303030;
  background-color: #f8f9fa;
}

.native-form .textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.native-form .textarea:focus {
  background-color: #ffffff;
  border-color: #fd3f0f;
}

.native-form .select {
  color: #9ca3af;
  background-color: #f8f9fa;
}

.native-form .select option {
  color: #303030;
}

.native-form .select--has-value {
  color: #303030;
}

.native-form .select:focus {
  background-color: #ffffff;
  border-color: #fd3f0f;
}

/* Honeypot - hidden from real users */
.native-form__honeypot {
  display: none !important;
}

/* Validation error states */
.native-form .text-input--error,
.native-form .textarea--error,
.native-form .select--error {
  border-color: #c23934 !important;
}

.native-form__field-error {
  display: none;
  font-size: 12px;
  color: #c23934;
  margin-top: 4px;
}

.native-form__field-error--visible {
  display: block;
}

/* Feedback messages */
.native-form__feedback {
  display: none;
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 20px;
  text-align: center;
}

.native-form__feedback--success {
  background-color: #ecfdf5;
  border: 1px solid #4bca81;
  color: #166534;
}

.native-form__feedback--error {
  background-color: #fef2f2;
  border: 1px solid #c23934;
  color: #991b1b;
}

.native-form__feedback--visible {
  display: block;
}

/* Submit button */
.native-form__submit {
  width: 100%;
  margin-top: 30px;
}

.native-form__submit-btn {
  width: 100%;
}

.native-form__submit-btn.native-form__submit--loading {
  opacity: 0.6;
  cursor: wait;
}

/* Star rating - CSS only */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px 0;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  font-size: 28px;
  color: #d8dde6;
  transition: color 0.15s ease;
  line-height: 1;
}

.star-rating label::before {
  content: "\2605";
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #fd3f0f;
}

/* Privacy consent block */
.native-form__consent {
  margin-bottom: 20px;
  text-align: left;
}

.native-form__consent-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

.native-form__consent-option input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #fd3f0f;
}

.native-form__consent-text {
  font-size: 13px;
  line-height: 1.5;
  color: #303030;
}

.native-form__consent-legal {
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
  margin-top: 8px;
  padding-left: 24px;
}

/* Responsive */
@media (max-width: 600px) {
  .native-form {
    padding: 24px 20px;
  }

  .native-form__group {
    margin-bottom: 16px;
  }

  .star-rating label {
    font-size: 32px;
  }
}
