.wcv-field-wrapper label {
  display: block;
  margin-bottom: 5px;
  margin-top: 20px;
}

.wcv-form-spacing {
  height: 10px;
  margin: 10px 0;
}

/* Content fields styling */
.wcv-terms-content-wrapper,
.wcv-content-wrapper {
  margin-bottom: 15px;
}

.wcv-terms-toggle,
.wcv-content-toggle {
  background: none;
  color: #0073aa;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.wcv-terms-toggle:hover,
.wcv-content-toggle:hover {
  color: #005a87;
  text-decoration: none;
}

.wcv-terms-toggle:focus,
.wcv-content-toggle:focus {
  outline: none;
  text-decoration: none;
}

.wcv-terms-toggle-text,
.wcv-content-toggle-text {
  font-weight: 500;
}

.wcv-terms-content,
.wcv-content-field {
  margin-top: 10px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.5;
}

.wcv-terms-content p,
.wcv-content-field p {
  margin: 0 0 10px 0;
}

.wcv-terms-content p:last-child,
.wcv-content-field p:last-child {
  margin-bottom: 0;
}

.wcv-terms-label {
  font-weight: 500;
  cursor: pointer;
}

.wcv-terms-label a,
.wcv-content-field a {
  color: #0073aa;
  text-decoration: underline;
}

.wcv-terms-label a:hover,
.wcv-content-field a:hover {
  color: #005a87;
}

/* Password field styling */
.wcv-field-wrapper {
  margin-bottom: 25px;
}

.wcv-field-wrapper .password-confirm-field {
  margin-top: 15px;
}

.wcv-field-wrapper .password-strength-meter {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  transition: all 0.3s ease;
}

/* Password strength colors */
.wcv-field-wrapper .password-strength-meter .very-weak {
  color: #e74c3c;
  font-weight: bold;
}

.wcv-field-wrapper .password-strength-meter .weak {
  color: #e67e22;
  font-weight: bold;
}

.wcv-field-wrapper .password-strength-meter .medium {
  color: #f1c40f;
  font-weight: bold;
}

.wcv-field-wrapper .password-strength-meter .strong {
  color: #27ae60;
  font-weight: bold;
}

.wcv-field-wrapper .password-strength-meter .very-strong {
  color: #2ecc71;
  font-weight: bold;
}

/* Password match/mismatch styling */
.wcv-field-wrapper input.password-match {
  border-color: #27ae60;
  box-shadow: 0 0 0 1px #27ae60;
}

.wcv-field-wrapper input.password-mismatch {
  border-color: #e74c3c;
  box-shadow: 0 0 0 1px #e74c3c;
}

/* Address fields styling */
.wcv-address-fields {
  margin-bottom: 20px;
}

.wcv-address-fields .wcv-field-wrapper {
  margin-bottom: 15px;
}

/* Specific spacing for address fields */
.wcv-address-field {
  margin-bottom: 15px;
}

.wcv-address-field.wcv-address-address_1 {
  margin-bottom: 20px;
}

.wcv-address-field.wcv-address-address_2 {
  margin-top: 10px;
}

/* Address group styling */
.wcv-address-group {
  margin-bottom: 20px;
}

.wcv-address-group-address_lines {
  margin-bottom: 25px;
}

/* Radio and Checkbox Field Styling */
.wcv-radio-group,
.wcv-checkbox-group {
  margin-top: 10px;
}

.wcv-radio-option,
.wcv-checkbox-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 8px 0;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.wcv-radio-option:hover,
.wcv-checkbox-option:hover {
  background-color: #f8f9fa;
}

.wcv-radio-option:last-child,
.wcv-checkbox-option:last-child {
  margin-bottom: 0;
}

/* Radio button styling */
.wcv-radio-option input[type='radio'] {
  width: 18px;
  height: 18px;
  margin: 2px 12px 0 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #2271b1;
}

.wcv-radio-label {
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: #32373c;
  font-weight: 400;
  margin: 0;
  flex: 1;
  padding-top: 1px;
}

/* Checkbox styling */
.wcv-checkbox-option input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 2px 12px 0 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #2271b1;
}

.wcv-checkbox-option label {
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: #32373c;
  font-weight: 400;
  margin: 0;
  flex: 1;
  padding-top: 1px;
}

/* Focus states for accessibility */
.wcv-radio-option input[type='radio']:focus,
.wcv-checkbox-option input[type='checkbox']:focus {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

/* Vertical orientation (default) */
.wcv-radio-vertical .wcv-radio-option,
.wcv-checkbox-vertical .wcv-checkbox-option {
  display: flex;
  align-items: flex-start;
}

/* Horizontal orientation for radio buttons */
.wcv-radio-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.wcv-radio-horizontal .wcv-radio-option {
  margin-bottom: 0;
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  white-space: nowrap;
}

.wcv-radio-horizontal .wcv-radio-option input[type='radio'] {
  margin: 0 8px 0 0;
}

/* Disabled state styling */
.wcv-radio-option input[type='radio']:disabled,
.wcv-checkbox-option input[type='checkbox']:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wcv-radio-option input[type='radio']:disabled + .wcv-radio-label,
.wcv-checkbox-option input[type='checkbox']:disabled + label {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error state styling */
.wcv-field-wrapper.field-error .wcv-radio-group,
.wcv-field-wrapper.field-error .wcv-checkbox-group {
  border: 1px solid #d63638;
  border-radius: 4px;
  padding: 8px;
  background-color: #fef7f7;
}

/* Required field indicator */
.required {
  color: inherit;
}

.wcv-field-wrapper label .required,
.wcv-address-field label .required {
  color: #d63638;
  font-weight: bold;
}

/* General input styling for better appearance */
.wcv-field-wrapper input[type='text'],
.wcv-field-wrapper input[type='email'],
.wcv-field-wrapper input[type='tel'],
.wcv-field-wrapper input[type='password'],
.wcv-field-wrapper textarea {
  width: 100%;
}

.wcv-field-wrapper select {
  width: 100%;
  padding: 10px;
}

/* Phone validation styling */
.wcv-invalid-phone {
  border: 1px solid #d63638 !important;
  background-color: #fef7f7 !important;
  box-shadow: 0 0 0 1px #d63638;
  transition: all 0.2s ease;
}

.wcv-phone-valid {
  border: 1px solid #00a32a !important;
  background-color: #f7fff7 !important;
  box-shadow: 0 0 0 1px #00a32a;
  transition: all 0.2s ease;
}

.wcv-phone-error {
  color: #d63638;
  font-size: 12px;
  margin-top: 5px;
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Phone field with mask styling */
input[type='tel'][data-current-mask] {
  letter-spacing: 1px;
}

/* Loading state for phone validation */
.wcv-phone-validating {
  position: relative;
}

.wcv-phone-validating::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #2271b1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Form validation error styling */
.wcv-has-error .wcv-field-input,
.wcv-field-invalid {
  border: 1px solid #d63638 !important;
  background-color: #fef7f7 !important;
  box-shadow: 0 0 0 1px #d63638;
  transition: all 0.2s ease;
}

.wcv-has-error .wcv-field-input:focus,
.wcv-field-invalid:focus {
  box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.3);
}

.wcv-field-error {
  color: #d63638;
  font-size: 13px;
  margin-top: 8px;
  display: block;
  animation: slideDown 0.3s ease;
  line-height: 1.4;
}

.wcv-field-error small {
  font-size: 12px;
  opacity: 0.8;
}

/* Error styling for different field types */
.wcv-has-error .wcv-radio-group,
.wcv-has-error .wcv-checkbox-group {
  border: 1px solid #d63638;
  border-radius: 4px;
  padding: 10px;
  background-color: #fef7f7;
}

.wcv-has-error .wcv-address-fields {
  border: 1px solid #d63638;
  border-radius: 4px;
  padding: 15px;
  background-color: #fef7f7;
}

/* Valid field styling */
.wcv-field-valid {
  border: 1px solid #00a32a !important;
  background-color: #f7fff7 !important;
  box-shadow: 0 0 0 1px #00a32a;
  transition: all 0.2s ease;
}

/* Smooth transitions for error states */
.wcv-field-wrapper {
  transition: all 0.2s ease;
}

.wcv-field-input {
  transition: border-color 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Form message styling */
.wcv-form-message {
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  border-left: 4px solid;
  font-size: 14px;
  line-height: normal;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* Icon styling in messages */
.wcv-form-message .dashicons {
  margin-right: 8px;
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: normal;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Message types */
.wcv-message-error {
  background-color: #fef7f7;
  border-color: #d63638;
  color: #5a1f1f;
}

.wcv-message-success {
  background-color: #f0f8f0;
  border-color: #00a32a;
  color: #1d4621;
}

.wcv-message-info {
  background-color: #f0f6fc;
  border-color: #2271b1;
  color: #1a4566;
}

.wcv-message-notice {
  background-color: #fff8e5;
  border-color: #dba617;
  color: #674d00;
}

/* Multiple messages spacing */
.wcv-form-message + .wcv-form-message {
  margin-top: -10px;
}

/* File upload styling */

/* File input styling */
input[type='file'][data-ajax-upload='true'] {
  margin-bottom: 10px;
}

.wcv-field-success {
  color: #28a745;
  font-size: 12px;
  margin-top: 5px;
  padding: 4px 0;
}

.wcv-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #2271b1;
  border-radius: 50%;
  animation: wcv-spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes wcv-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Simple Vendor Information Styles */
.wcv-vendor-info-section {
  margin: 20px 0;
}

.wcv-vendor-info-title {
  margin-bottom: 10px;
}

.wcv-signup-accordion-header {
  background: #f9f9f9;
  padding: 10px 15px;
  border: 1px solid #ddd;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wcv-signup-accordion-header:hover {
  background: #f0f0f0;
}

.wcv-signup-accordion-content {
  display: none;
  border: 1px solid #ddd;
  border-top: none;
  padding: 15px;
  background: #fff;
}

.wcv-info-item {
  margin-bottom: 10px;
}

.wcv-info-label {
  font-weight: bold;
  color: #666;
  display: block;
  margin-bottom: 3px;
}

.wcv-info-value {
  color: #333;
}

.wcv-field-error-list {
  padding-left: 10px;
  margin: 0;
}

.wcv-field-error-list li {
  margin-bottom: 5px;
}
