/* Premium Vanilla CSS for Mando CRM Embedded Forms */

.mando-crm-form-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 600px;
    margin: 2.5rem 0;
    color: #1a1c1e;
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f3f5;
}

.mando-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mando-description {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.mando-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mando-field-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.mando-required {
    color: #ef4444;
    margin-left: 2px;
}

.mando-field-group input,
.mando-field-group select,
.mando-field-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: #ffffff;
    font-size: 1rem;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.mando-field-group input:focus,
.mando-field-group select:focus,
.mando-field-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.mando-field-group textarea {
    min-height: 140px;
    resize: vertical;
}

.mando-submit-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.mando-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.mando-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.mando-form-message {
    padding: 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.5rem;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mando-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

.mando-error-msg,
.mando-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.mando-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-weight: 500;
}
