/* Form Wrapper */
.idallas-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

/* Form Title and Description */
.idallas-form-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 600;
  color: #1e1e1e;
}

.idallas-form-description {
  margin-bottom: 25px;
  color: #646970;
  font-size: 16px;
  line-height: 1.6;
}

/* Form Fields */
.idallas-form-field {
  margin-bottom: 20px;
}

.idallas-form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #1e1e1e;
}

.idallas-form-field .required {
  color: #d63638;
  margin-left: 3px;
}

/* Input Styles */
.idallas-input,
.idallas-textarea,
.idallas-select {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  line-height: 1.5;
  color: #1e1e1e;
  background-color: #fff;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.idallas-input:focus,
.idallas-textarea:focus,
.idallas-select:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

.idallas-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox Styles */
.idallas-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.idallas-checkbox {
  width: auto;
  margin-top: 3px;
  cursor: pointer;
}

.idallas-checkbox-label {
  flex: 1;
  font-weight: normal;
  cursor: pointer;
  margin: 0;
}

/* Field Description */
.idallas-field-description {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 13px;
  color: #646970;
  line-height: 1.5;
}

/* Submit Button */
.idallas-form-submit {
  margin-top: 30px;
}

.idallas-submit-btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: #2271b1;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.idallas-submit-btn:hover {
  background-color: #135e96;
}

.idallas-submit-btn:disabled {
  background-color: #8c8f94;
  cursor: not-allowed;
}

/* Messages */
.idallas-form-messages {
  margin-bottom: 20px;
}

.idallas-message {
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.5;
}

.idallas-success {
  background-color: #d7f0d7;
  border-left: 4px solid #00a32a;
  color: #1e4620;
}

.idallas-error {
  background-color: #f8d7da;
  border-left: 4px solid #d63638;
  color: #721c24;
}

/* Responsive */
@media (max-width: 600px) {
  .idallas-form-wrapper {
    padding: 15px;
  }

  .idallas-form-title {
    font-size: 24px;
  }

  .idallas-input,
  .idallas-textarea,
  .idallas-select,
  .idallas-submit-btn {
    font-size: 14px;
  }
}

/* Accessibility */
.idallas-input:invalid,
.idallas-textarea:invalid,
.idallas-select:invalid {
  border-color: #d63638;
}

.idallas-input:invalid:focus,
.idallas-textarea:invalid:focus,
.idallas-select:invalid:focus {
  box-shadow: 0 0 0 1px #d63638;
}

/* Loading State */
.idallas-form.loading {
  opacity: 0.6;
  pointer-events: none;
}