/* PS CRM CTA Forms Styles */

.ps-crm-cta-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.ps-crm-cta-form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3338;
}

.ps-crm-cta-form-subtitle {
    font-size: 16px;
    color: #646970;
    margin-bottom: 20px;
}

.ps-crm-cta-form-agent-note {
    background: #e7f5e7;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #2c3338;
}

.ps-crm-cta-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ps-crm-form-field {
    display: flex;
    flex-direction: column;
}

.ps-crm-form-field label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3338;
}

.ps-crm-form-field .required {
    color: #d63638;
}

.ps-crm-form-field input[type="text"],
.ps-crm-form-field input[type="email"],
.ps-crm-form-field input[type="tel"],
.ps-crm-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.ps-crm-form-field input:focus,
.ps-crm-form-field textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.ps-crm-form-field input.error,
.ps-crm-form-field textarea.error {
    border-color: #d63638;
}

.ps-crm-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.ps-crm-form-actions {
    margin-top: 10px;
}

.ps-crm-cta-submit-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 150px;
}

.ps-crm-cta-submit-btn:hover:not(:disabled) {
    background: #135e96;
}

.ps-crm-cta-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ps-crm-cta-button {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 150px;
    text-align: center;
}

.ps-crm-cta-button:hover {
    background: #135e96;
    color: #fff;
    text-decoration: none;
}

.ps-crm-form-message {
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
}

.ps-crm-form-message.success {
    background: #e7f5e7;
    color: #1e4620;
    border: 1px solid #b8e6b8;
}

.ps-crm-form-message.error {
    background: #fcf0f1;
    color: #8a2424;
    border: 1px solid #f1aeb5;
}

/* Modal Styles */

.ps-crm-cta-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.ps-crm-cta-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ps-crm-cta-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #646970;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.ps-crm-cta-modal-close:hover {
    color: #2c3338;
}

.ps-crm-cta-modal-body {
    margin-top: 20px;
}

/* Responsive */

@media (max-width: 768px) {
    .ps-crm-cta-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .ps-crm-cta-form-wrapper {
        max-width: 100%;
    }
}
