.lh-form-step {
    display: none;
    padding: 2em 1.5em;
    margin-bottom: 2em;
}

.lh-form-step.active {
    display: block;
}

.lh-step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2em;
}

.lh-field-error {
    border-color: #d63638 !important;
    background: #fff0f0;
}

#lh-step-progress {
    text-align: right;
    font-size: 1em;
    color: #FFFFFF;
    margin-bottom: 1em;
}

.lh-form-step h2 {
    margin: 0 0 30px;
    font-size: 1.5em;
}

.lh-form-step h6 {
    margin: 15px 0 10px;
    font-family: 'DM Sans';
}

.lh-form-step p {
    font-weight: 300;
    font-size: 15px;
    margin: 0;
}

.lh-form-step p.lh-field-help {
    margin-bottom: 10px;
}

#heritage-submission-form p {    
    font-style: italic;
}

.lh-form-step small {
    display: block;
    color: #fff;
    margin: 4px 0 1em;
    font-size: 14px;
}

.lh-radio-group, 
.lh-checkbox-group {
    margin-bottom: 1em;
}

.heritage-form-field label {
    font-weight: 400;
    font-size: 24px;
}

.heritage-form-field label.lh-choice-label {
    font-size: 17px;
}

.lh-radio-group .lh-choice-label {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
}

.lh-form-step * {
    line-height: 1.5;
}

.lh-radio-group input[type="radio"], 
.lh-checkbox-group input[type="checkbox"] {
    margin-right: 0.5em;
}

#lh_submitter_name_wrap {
    margin-top: 1em;
    display: none;
}

.heritage-form-field {
    margin-bottom: 1.5em;
}

.heritage-form-error {
    border: 2px solid #e53935;
    background: #fff3f3;
}

.heritage-form-field input,
.heritage-form-field textarea,
.heritage-form-field select {
    width: 100%;
    padding: 0.5em;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.lh-form-step input:not([type="submit"]):not([type="button"]):not([type="number"]):not([type="checkbox"]):not([type="radio"]):focus {
    border-color: #FFF !important;
}

.heritage-form-field input.heritage-form-error,
.heritage-form-field textarea.heritage-form-error,
.heritage-form-field select.heritage-form-error {
    border-color: #e53935;
    background: #fff3f3;
}

.label-category {
    display: block;
    margin: 5px 0;
    width: auto;
}

.lh-error-no-categories {
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    margin-top: 1em;
}

.heritage-submission-form button[type="submit"],
.lh-step-next, 
.lh-step-prev {
    transform-origin: center;
    outline: 0;
    color: #000000 !important;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    border-radius: 30px !important;
    font-weight: 500 !important;
    font-family: 'DM Sans' !important;
    transition: color 200ms cubic-bezier(0.785, 0.135, 0.15, 0.86), background-color 200ms cubic-bezier(0.785, 0.135, 0.15, 0.86), border-color 200ms cubic-bezier(0.785, 0.135, 0.15, 0.86);
    font-size: 17px !important;
    padding: 18px 44px !important;
    border-width: 1px;
    display: inline-block;
    font-style: normal !important;
    text-align: center;
    vertical-align: middle;
    margin-top: 1px;
    margin-bottom: 1px;
    cursor: pointer;
    background-image: none;
    border-style: solid;
    white-space: pre-wrap;
    -webkit-text-stroke: 0px;
    letter-spacing: 0 !important;
}

.heritage-submission-form button[type="submit"]:hover,
.lh-step-next:hover, 
.lh-step-prev:hover {
    background-color: transparent !important;
    color: #FFFFFF !important;
}

.heritage-submission-form button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: not-allowed !important;
  background-color: inherit !important;
  color: inherit !important;
  border-color: inherit !important;
}

.lh-success-message {
    color: #ffffff;
    background: #fcb900;
    padding: 15px;
    border: 1px solid #fcb900;
    border-radius: 4px;
    margin: 20px 0;
    font-weight: bold;
    margin-top: 1em;
    text-align: center;
}

.lh-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
}

.lh-spinner svg {
    animation: lh-spin 1s linear infinite;
}

@keyframes lh-spin {
    100% { transform: rotate(360deg); }
}

/* Dual ring loader: color actual + blanc */
.lh-loader {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
}
.lh-loader:after {
  content: " ";
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #2e7d32;
  border-color: #2e7d32 #fff #2e7d32 #fff;
  animation: lh-loader-spin 1.2s linear infinite;
}
@keyframes lh-loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* File input with remove button */
.file-input-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-input-container input[type="file"] {
  flex: 1;
}

.file-remove-btn {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.file-remove-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.file-remove-btn .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  line-height: 1.2;
}