/**
 * Chado Forms - Base Styles
 */

.chado-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.chado-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.chado-form-header h2 {
    margin-bottom: 10px;
}

.chado-form-header h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.chado-form-header p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

.chado-form-field {
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.chado-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.chado-form-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chado-form-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chado-form-option:hover {
    border-color: #999;
}

.chado-form-option input[type="radio"] {
    margin-right: 10px;
}

.chado-form-option input[type="radio"]:checked + span {
    font-weight: 600;
}

.chado-form-option:has(input:checked) {
    border-color: #333;
    background: #f5f5f5;
}

.chado-form-submit {
    margin-top: 20px;
}

.chado-form-button {
    display: block;
    width: 100%;
    padding: 15px 40px;
    background: #b6c58a;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chado-form-button:hover {
    background: #3d6515;
}

/* Success Message */
.chado-form-success {
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 0;
    color: #155724;
    text-align: center;
}

/* Error Message */
.chado-form-error {
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 0;
    color: #721c24;
    text-align: center;
    margin-bottom: 20px;
}

/* Input Fields */
.chado-form-input,
.chado-form-select,
.chado-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #6a8d73;
    border-radius: 0;
    font-size: 1em;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.chado-form-input:focus,
.chado-form-select:focus,
.chado-form-textarea:focus {
    outline: none;
    border-color: #4a6d53;
}

.chado-form-select {
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a8d73' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.chado-form-textarea {
    resize: vertical;
    min-height: 120px;
}
