:root {
    --primary: #257226;
    --secondary: #84db00;
    --gray: #f6f6f6;
    --border: #ddd;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fafafa;
    margin: 0;
}

/* .container {
    max-width: 900px;
    margin: auto;
    padding: 40px;
    background: white;
} */

h1 {
    margin-bottom: 30px;
    color: var(--primary);
}

.form-section {
    margin-bottom: 40px;
    padding: 20px;
    background: var(--gray);
    border-radius: 6px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
}

input,
select,
textarea {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
}

textarea {
    min-height: 100px;
    resize: vertical;
    width: 100%;
    margin-top: 10px;
}

input[type="radio"] {
    margin-right: 5px;
}

.btn-enviar {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    width: 100%;
}

.btn-enviar:hover {
    opacity: .9;
}

.error {
    border-color: red;
}

.error-message {
    color: red;
    font-size: 13px;
    margin-top: 4px;
}

.conditional-field {
    display: none;
}

.radio-error {
    border: 2px solid #e53935;
    padding: 12px;
    border-radius: 6px;
    background: #fff5f5;
}

.input-error {
    border: 2px solid #e53935;
    background: #fff5f5;
}

.required-star {
    color: #e53935;
    margin-left: 4px;
    font-weight: bold;
}

.input-error {
    border: 2px solid #e53935;
    padding: 8px;
    border-radius: 6px;
    background: #fff5f5;
}

.radio-error {
    border: 2px solid #e53935;
    padding: 12px;
    border-radius: 6px;
    background: #fff5f5;
}

.field-error {
    color: #e53935;
}

.checkbox-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.checkbox-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    /* padding: 14px; */
    padding: 10px;
    cursor: pointer;
    transition: all .2s ease;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* font-weight: 500;
    font-size: 14px; */
    font-weight: 600;
    font-size: 13px;
}

.checkbox-card input {
    display: none;
}

.checkbox-card:hover {
    border-color: var(--secondary);
    background: #f5f9ff;
}

.checkbox-card.selected {
    border-color: var(--secondary);
    background: #e8f1ff;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
}

.wizard-steps {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.step {
    padding: 8px 14px;
    border-radius: 6px;
    background: #e0e0e0;
    font-size: 14px;
}

.step.active {
    background: var(--primary);
    color: #fff;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.wizard-nav {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.wizard-nav button {
    background: var(--primary);
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    border: 1px solid var(--primary);
    font-size: 14px;
}

.wizard-nav button:hover {
    background: var(--secondary);
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    border: 1px solid var(--secondary);
    cursor: pointer;
}



.form-section {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all .3s ease;
}

.form-section.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.wizard-progress {
    height: 6px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.wizard-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width .3s ease;
}

.wizard-steps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.step {
    border: none;
    background: #e0e0e0;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.step.active {
    background: var(--primary);
    color: #fff;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.conditional-field {
    display: none;
}

.field-error {
    color: #e53935;
    font-size: 13px;
    margin-top: 4px;
}

.radio-error {
    border: 2px solid #e53935;
    padding: 10px;
    border-radius: 6px;
    background: #fff5f5;
}


.checkbox-card.selected {
    border-color: var(--secondary);
    background: #e8f1ff;
    box-shadow: 0 0 0 3px rgba(132, 219, 0, .25);
}

/* .conditional-field {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all .25s ease;
}

.conditional-field.visible {
    opacity: 1;
    max-height: 500px;
} */

.char-counter {
  font-size: 0.85em;
  margin-top: 4px;
  text-align: right;
  color: #666;
}

.char-counter.error {
  color: #dc3545;
}

.char-counter.success {
  color: #28a745;
}

.form-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-weight: 500;
  position: relative;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-message.hidden {
  display: none;
}

#close-message {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: inherit;
}

@media(max-width:768px) {

    .container {
        padding: 20px;
    }

}