.mcf-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.mcf-form-group {
    margin-bottom: 20px;
}

.mcf-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.mcf-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.mcf-input.error {
    background-color: #ffeeee;
    border-color: #ff9999;
}

.mcf-input.mcf-valid {
    background-color: #eeffee;
    border-color: #99cc99;
}

.mcf-error {
    color: #ff0000;
    font-size: 0.9em;
    margin-top: 5px;
}

.mcf-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

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

#mcf-form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
}

#mcf-form-message.success {
    background-color: #dff0d8;
    color: #3c763d;
}

#mcf-form-message.error {
    background-color: #f2dede;
    color: #a94442;
}

.mcf-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.mcf-image-preview img {
    max-width: 100px;
    max-height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
}


/* CAPTCHA validation */
.mcf-feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mcf-feedback i {
    font-size: 1.2rem;
}

.mcf-valid {
    background: #e8f5e9;
    color: #388e3c;
    border-left: 5px solid #388e3c;
}

.mcf-invalid {
    background: #ffebee;
    color: #d32f2f;
    border-left: 5px solid #d32f2f;
}

.neutral {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 5px solid #1976d2;
}

.mcf-hidden {
    display: none;
}

hr.style-five {
    border: 0;
    height: 0;
    /* Firefox... */
    box-shadow: 0 0 10px 1px black;
}

hr.style-five:after {
    /* Not really supposed to work, but does */
    content: "\00a0";
    /* Prevent margin collapse */
}

/*preview image styles*/
.mcf-preview-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    padding: 3px;
}

.mcf-preview-item img {
    max-width: 160px;
    height: auto;
    border-radius: 6px;
}

.mcf-filename {
    font-size: .8rem;
    color: #475569;
    margin-top: .25rem;
    text-align: center;
}

/*mcf gallery post content preview*/
.mcf-gallery {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #f9f9f9;
}

.mcf-gallery h3 {
    margin-top: 0;
    color: #333;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/*image preview at the end of form submission*/
.mcf-preview-container {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.mcf-preview-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.mcf-preview-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mcf-featured-preview {
    margin-top: 10px;
    text-align: center;
}

.mcf-gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.mcf-gallery-item {
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.mcf-preview-img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    border-radius: 3px;
}

.mcf-image-name {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    word-break: break-all;
}

.mcf-no-image {
    color: #6c757d;
    font-style: italic;
    padding: 10px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px dashed #dee2e6;
}

.html-element.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 5px;
    margin: 15px 0;
}

.mcf-preview-item strong {
    color: #495057;
    display: block;
    margin-bottom: 5px;
}

/*preview linke*/
.mcf-preview-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.mcf-preview-link:hover {
    color: #00a0d2;
    text-decoration: underline;
}

.mcf-preview-link-container {
    margin: 15px 0;
    text-align: center;
}

.mcf-preview-link.button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    font-size: 14px;
}

.mcf-preview-link.button:hover {
    background: #00a0d2;
    color: white;
    text-decoration: none;
}
