/* mpa-styles.css */
/* Container for the entire form */
.mpa-form-container {
    max-width: 700px;
    margin: 50px auto;
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Individual form steps */
.mpa-form-step {
    margin-bottom: 20px;
}

/* Heading for each step */
.mpa-form-step h3 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 25px;
    text-align: center;
}

/* Labels for input fields */
.mpa-form-step label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #555555;
    font-size: 16px;
    text-align: left;
}

/* Input fields and textarea */
.mpa-form-step input,
.mpa-form-step textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

/* Specific styles for textarea */
.mpa-form-step textarea {
    min-height: 150px;
    height: auto;
    resize: vertical;
}

/* Placeholder text styling */
.mpa-form-step textarea::placeholder {
    color: #999999;
    font-style: italic;
}

/* Focus styles for textarea */
.mpa-form-step textarea:focus {
    border-color: #66afe9;
    outline: none;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
}

/* Response messages */
#mpa-form-response {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#mpa-form-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#mpa-form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Radio button styles */
.mpa-radio-group {
    margin: 20px 0;
    text-align: left;
}

.mpa-radio-group p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #555555;
    font-size: 16px;
}

.mpa-radio-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    cursor: pointer;
    font-size: 16px;
    color: #555555;
}

.mpa-radio-group input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.1);
    cursor: pointer;
}

.mpa-radio-group label:hover {
    color: #000000;
}

.mpa-radio-group.error label {
    color: #e74c3c;
}

.mpa-radio-group.error input[type="radio"] {
    outline: 2px solid #e74c3c;
    border-radius: 50%;
}

/* Hashtags styles */
.mpa-hashtags-container {
    margin-bottom: 20px;
    text-align: left;
}

.mpa-hashtags-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mpa-hashtags-input input[type="text"] {
    flex: 1;
    max-width: 70%;
    padding: 10px;
    font-size: 14px;
}

#mpa-hashtags-counter {
    font-size: 12px;
    color: #999999;
    margin-left: 10px;
}

/* Checkbox styles */
.mpa-checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 14px;
    color: #555555;
}

.mpa-checkbox-label input[type="checkbox"] {
    margin-right: 5px;
    transform: scale(1.2);
}

.mpa-checkbox-label:hover {
    color: #000000;
}

/* Error messages */
.error-message {
    display: none;
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 10px;
}

/* Step 2 radio buttons */
.mpa-step2-radio-group {
    margin: 20px 0;
    text-align: left;
}

.mpa-step2-radio-group p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #555555;
    font-size: 16px;
}

.mpa-step2-radio-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    cursor: pointer;
    font-size: 14px;
    color: #555555;
}

.mpa-step2-radio-group input[type="radio"] {
    margin-right: 6px;
    transform: scale(1.0);
    cursor: pointer;
}

.mpa-step2-radio-group label:hover {
    color: #000000;
}

.mpa-step2-radio-group.error label {
    color: #e74c3c;
}

.mpa-step2-radio-group.error input[type="radio"] {
    outline: 2px solid #e74c3c;
    border-radius: 50%;
}

/* Dropdown styles */
.mpa-dropdown-container {
    margin-bottom: 20px;
    text-align: left;
}

.mpa-dropdown-container label {
    display: block;
    font-weight: bold;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: #555555;
    font-size: 1rem;
}

.mpa-dropdown-container select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

/* Rich Text Editor styles */
/* Default styles for the rich text editor */
#mpa-rich-text-editor {
    max-width: 700px;
    margin: 50px auto;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: margin-left 0.3s ease;
}

#mpa-rich-text-editor h3 {
    text-align: center;
}

#mpa-editor-toolbar {
    margin-bottom: 10px;
}

#mpa-editor-toolbar button {
    background-color: #f1f1f1;
    border: none;
    padding: 5px;
    margin-right: 5px;
    cursor: pointer;
}

#mpa-editor-toolbar button:hover {
    background-color: #ddd;
}

#mpa-editor-content {
    border: 1px solid #ccc;
    padding: 10px;
    min-height: 300px;
}

/* Responsive styles */
@media (max-width: 480px) {
    .mpa-radio-group label,
    .mpa-step2-radio-group label {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .mpa-radio-group input[type="radio"],
    .mpa-step2-radio-group input[type="radio"] {
        margin-right: 5px;
    }

    .mpa-hashtags-input {
        flex-direction: column;
        align-items: flex-start;
    }

    .mpa-hashtags-input input[type="text"] {
        max-width: 100%;
    }
}

/* Styles for when the chat is open on desktop */
@media (min-width: 768px) {
    #mpa-rich-text-editor.chat-open {
        margin-left: -200px; /* Adjust this value based on the chat width */
    }
}

/* Mobile styles remain unchanged */
@media (max-width: 767px) {
    #mpa-rich-text-editor {
        margin: 20px auto;
        padding: 15px;
    }
}

.mpa-save-button {
    display: inline-block; /* Change from block to inline-block to place buttons side by side */
    margin: 20px 10px; /* Adjust margin to space out the buttons */
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.mpa-save-button:hover {
    background-color: #45a049;
}

/* Optional: Add a different color for the "Save to Clipboard" button */
#mpa-copy-to-clipboard {
    background-color: #2196F3;
}

#mpa-copy-to-clipboard:hover {
    background-color: #1e88e5;
}

/* Disabled Save Button Styles */
.mpa-save-button:disabled {
    background-color: #cccccc !important; /* Gray background */
    color: #666666 !important; /* Darker gray text */
    cursor: not-allowed !important; /* Show "not allowed" cursor */
    opacity: 0.7 !important; /* Slightly transparent */
    border: 1px solid #999999 !important; /* Gray border */
}

/* Hover state for disabled button */
.mpa-save-button:disabled:hover {
    background-color: #cccccc !important; /* Keep the same background color */
    color: #666666 !important; /* Keep the same text color */
    box-shadow: none !important; /* Remove any shadow effects */
}