.ca-form-container {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.ca-form-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.ca-form-subtitle {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ca-form-group {
    margin-bottom: 16px;
    text-align: left;
}

.ca-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.ca-required {
    color: #ef4444;
}

.ca-form-input,
.ca-form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ca-form-input:focus,
.ca-form-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ca-form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.ca-form-submit-btn:hover {
    filter: brightness(0.95);
}

.ca-form-submit-btn:active {
    transform: scale(0.98);
}

.ca-btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: ca-spin 0.8s linear infinite;
}

@keyframes ca-spin {
    to { transform: rotate(360s); }
}

.ca-form-feedback {
    margin-top: 15px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

.ca-form-feedback.ca-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.ca-form-feedback.ca-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
