/* Main Container Styles */
.csmp-container {
    display: grid;
    grid-template-rows: auto 1fr;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.csmp-header {
    padding: 20px;
}

.csmp-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

/* Content Layout */
.csmp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px;
}

.csmp-left-column {
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100%;
}

.csmp-right-column {
    padding: 20px;
}

/* Section Styles */
.csmp-section {
    margin-bottom: 20px;
    width: 100%;
}

.csmp-section:last-child {
    margin-bottom: 0;
}

.csmp-section .csmp-input {
    margin-bottom: 0;
}

.csmp-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #FF6B3D;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* View More Link */
.csmp-view-more {
    color: #FF6B3D;
    text-decoration: none;
    font-size: 14px;
}

.csmp-view-more:hover {
    text-decoration: underline;
}

/* Tag Styles */
.csmp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.csmp-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 4px;
    background-color: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.csmp-tag:hover {
    background-color: #e9e9e9;
}

.csmp-tag.active,
.csmp-tag.selected {
    background: #FF6B3D;
    color: white;
}

/* Input Styles */
.csmp-input {
    height: 52px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    background-color: #EFF1F9;
}

.csmp-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

/* Button Styles */
.csmp-add-button {
    height: 52px;
    width: 52px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.csmp-submit {
    width: 100%;
    padding: 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.csmp-submit:hover {
    background: #006ba1;
}

.csmp-left-column .csmp-submit {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 200px;
}

/* Background Colors */
.bk-yellow { background-color: #FFCF0D; }
.bk-orange { background-color: #FF6B3D; }
.bk-pink { background-color: #FF2493; }

/* Checkbox Styles */
.csmp-checkbox-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.csmp-checkbox-container label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #FF6B3D;
    position: relative;
}

.csmp-checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #FF6B3D;
    border-radius: 4px;
    margin: 0;
    cursor: pointer;
    position: relative;
    background: white;
}

.csmp-checkbox-container input[type="checkbox"]:checked {
    background: #FF6B3D;
}

.csmp-checkbox-container input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Rich Text Editor Styles */
#csmp-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);
    text-align: center;
}

#csmp-rich-text-editor h3 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 25px;
    text-align: center;
}

#csmp-editor-toolbar {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: flex;
    gap: 10px;
    justify-content: center;
}

#csmp-editor-toolbar button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

#csmp-editor-toolbar button:hover {
    background-color: #f0f0f0;
}

#csmp-editor-content {
    min-height: 200px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    outline: none;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

#csmp-editor-content:focus {
    border-color: #66afe9;
    outline: none;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
}

#csmp-editor-content::placeholder {
    color: #999999;
    font-style: italic;
}

#csmp-editor-content p {
    margin-bottom: 15px;
}

#csmp-editor-content ul, 
#csmp-editor-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

#csmp-editor-content li {
    margin-bottom: 5px;
}

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

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

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

/* Responsive Styles */
@media (max-width: 768px) {
    .csmp-content {
        grid-template-columns: 1fr;
    }
}
