/* === Apsa Form UI Styles - Similar to Chat Agent UI === */

.apsa-form-container {
    width: 100%;
    max-width: 500px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
    margin: 20px auto;
    background: #fff;
}

.apsa-form-header {
    background: #026937;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.apsa-form-header .apsa-form-logo {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain;
    display: block;
    flex: 0 0 32px;
}

.apsa-form-title {
    display: inline-block;
}

.apsa-form-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    max-height: 600px;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.form-group.is-hidden,
.btn-submit.is-hidden {
    display: none;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00C853;
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.apsa-form-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-submit {
    background: #00C853;
    color: white;
    border: none;
    padding: 11px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
    background: #00A844;
}

.btn-submit:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-message {
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: none;
}

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

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

/* Responsive adjustments */
@media (max-width: 600px) {
    .apsa-form-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .apsa-form-header {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .apsa-form-content {
        padding: 15px;
    }
    
    .apsa-form-footer {
        padding: 12px 15px;
    }
}
