/* TinyMCE Content Styling - Kareya Interior Theme */

.tinymce-content {
    line-height: 1.8;
    color: #666;
    font-family: 'Open Sans', sans-serif;
}

.tinymce-content .theme-paragraph {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.tinymce-content .theme-h1,
.tinymce-content .theme-h2,
.tinymce-content .theme-h3,
.tinymce-content .theme-h4,
.tinymce-content .theme-h5,
.tinymce-content .theme-h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #2c2c2c;
    margin: 30px 0 20px 0;
    line-height: 1.4;
}

.tinymce-content .theme-h1 {
    font-size: 36px;
    color: #1a1a1a;
}

.tinymce-content .theme-h2 {
    font-size: 30px;
    color: #1a1a1a;
}

.tinymce-content .theme-h3 {
    font-size: 24px;
    color: #2c2c2c;
}

.tinymce-content .theme-h4 {
    font-size: 20px;
    color: #2c2c2c;
}

.tinymce-content .theme-h5 {
    font-size: 18px;
    color: #2c2c2c;
}

.tinymce-content .theme-h6 {
    font-size: 16px;
    color: #2c2c2c;
}

.tinymce-content .theme-strong,
.tinymce-content .theme-bold {
    font-weight: 600;
    color: #1a1a1a;
}

.tinymce-content .theme-ul,
.tinymce-content .theme-ol {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.tinymce-content .theme-li {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.tinymce-content .theme-ul .theme-li {
    list-style-type: disc;
}

.tinymce-content .theme-ol .theme-li {
    list-style-type: decimal;
}

.tinymce-content .theme-ul .theme-li::marker {
    color: #c9a96e;
}

.tinymce-content .theme-ol .theme-li::marker {
    color: #c9a96e;
    font-weight: 600;
}

.tinymce-content .theme-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tinymce-content .theme-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.tinymce-content .theme-img[data-external="true"] {
    border: 2px solid #c9a96e;
    position: relative;
}

.tinymce-content .theme-img[data-external="true"]::after {
    content: "External Image";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c9a96e;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.tinymce-content .theme-link {
    color: #c9a96e;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.tinymce-content .theme-link:hover {
    color: #b8956a;
    border-bottom-color: #c9a96e;
}

.tinymce-content .theme-blockquote {
    border-left: 4px solid #c9a96e;
    margin: 30px 0;
    padding: 20px 30px;
    background: #f8f8f8;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.tinymce-content .theme-blockquote p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* Table Styling */
.tinymce-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tinymce-content table th,
.tinymce-content table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tinymce-content table th {
    background: #c9a96e;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.tinymce-content table tr:hover {
    background: #f8f8f8;
}

/* Code blocks */
.tinymce-content pre {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #c9a96e;
    overflow-x: auto;
    margin: 20px 0;
}

.tinymce-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .tinymce-content .theme-h1 {
        font-size: 28px;
    }

    .tinymce-content .theme-h2 {
        font-size: 24px;
    }

    .tinymce-content .theme-h3 {
        font-size: 20px;
    }

    .tinymce-content .theme-paragraph {
        font-size: 15px;
    }

    .tinymce-content .theme-blockquote {
        padding: 15px 20px;
        margin: 20px 0;
    }

    .tinymce-content .theme-img[data-external="true"]::after {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Animation for content loading */
.tinymce-content {
    opacity: 0;
    animation: fadeInContent 0.6s ease forwards;
}

@keyframes fadeInContent {
    to {
        opacity: 1;
    }
}

/* Quote Form Styling */
.quote-submit-btn {
    background: #c9a96e;
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.quote-submit-btn:hover {
    background: #b8956a;
    transform: translateY(-1px);
}

.quote-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.quote-message {
    margin-bottom: 15px;
    display: none;
}

.quote-message .success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 3px;
    border: 1px solid #c3e6cb;
    font-size: 12px;
}

.quote-message .error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 3px;
    border: 1px solid #f5c6cb;
    font-size: 12px;
}

.quote-notice {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 3px;
    border: 1px solid #ffeaa7;
    margin-bottom: 15px;
    display: none;
    font-size: 12px;
}