/**
 * Estilos CSS para frontend do Custom Forms
 */

.cf-form-container {
    max-width: 600px;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cf-form-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #13056f !important;
}

.cf-form-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cf-field-group {
    margin-bottom: 20px;
}

.cf-field-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.cf-field-required {
    color: #dc3232;
}

.cf-field-input {
    border-radius: 10px !important;
    border: 2px solid #ccc !important;
    width: 100%;
    padding: 10px;
    font-size: 14px;
    box-sizing: border-box;
    color: #666;
}

.cf-field-input:focus {
    border-color: #0073aa !important;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

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

.cf-field-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.cf-field-radio,
.cf-field-checkbox {
    margin-right: 10px;
}

.cf-field-radio-group,
.cf-field-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cf-field-radio-item,
.cf-field-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cf-field-radio-item label,
.cf-field-checkbox-item label {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

.cf-submit-button {
    width: 100% !important;
    border-radius: 200px !important;
    background: #13056f !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cf-submit-button:hover {
    background: #005a87;
}

.cf-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cf-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.cf-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: cf-spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes cf-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cf-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
}

.cf-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.cf-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.cf-field-error {
    border-color: #dc3232 !important;
    box-shadow: 0 0 5px rgba(220, 50, 50, 0.3) !important;
}

.cf-error-message {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Responsividade */
@media (max-width: 768px) {
    .cf-form-container {
        padding: 15px;
    }

    .cf-field-radio-group,
    .cf-field-checkbox-group {
        gap: 12px;
    }

    .cf-submit-button {
        width: 100%;
        padding: 15px;
    }
}