/* dcbc-styles.css */
/* Container for the entire form */
.dcbc-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 */
.dcbc-form-step {
    margin-bottom: 20px;
}

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

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

/* Input fields and textarea */
.dcbc-form-step input,
.dcbc-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 */
.dcbc-form-step textarea {
    min-height: 150px;
    height: auto;
    resize: vertical;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.dcbc-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 */
#dcbc-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;
}

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

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

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

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

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

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

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

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

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

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

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

.dcbc-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;
}

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

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

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

/* Disabled Save Button Styles */
.dcbc-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 */
.dcbc-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 */
}

/* Multi-select chips styles */
.dcbc-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 40px;
    padding: 5px 10px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.dcbc-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #e0f7fa;
    border-radius: 20px;
    font-size: 14px;
    color: #00796b;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dcbc-chip button {
    margin-left: 8px;
    background: transparent;
    border: none;
    color: #00796b;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 0 0 4px;
}

.dcbc-chip button:hover {
    color: #004d40;
}

.dcbc-chips-select[multiple] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    height: auto;
    min-height: 120px;
}

.dcbc-chips-select[multiple] option {
    padding: 8px;
    margin: 2px 0;
    border-radius: 4px;
}

.dcbc-chips-select[multiple] option:hover {
    background-color: #e0f7fa;
}

.dcbc-chips-select[multiple] option:checked {
    background-color: #b2ebf2;
    color: #00695c;
}

