.qumo-form-embed-editor {
    padding: 30px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.qumo-editor-header {
    margin-bottom: 24px;
    color: #333;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    padding: 0 0 15px;
    border-bottom: 1px solid #eee;
}

.qumo-editor-header strong {
    margin-left: 10px;
    font-size: 16px;
}

.qumo-logo {
    height: 24px;
    width: auto;
}

.qumo-form-preview {
    margin-top: 24px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.qumo-form-preview-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.qumo-form-embed-notice {
    color: #777;
    font-style: italic;
    margin-top: 15px;
    font-size: 12px;
}

.qumo-form-embed-container {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    min-height: 100px;
    line-height: 0; /* This removes any line-height spacing */
    font-size: 0; /* This removes any font-related spacing */
}

.qumo-form-embed-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 1;
    border-radius: inherit;
}

.qumo-form-embed-container.loading::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    z-index: 2;
    animation: qumoSpinEmbed 1s linear infinite;
}

@keyframes qumoSpinEmbed {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qumo-form-embed-container iframe {
    display: block; /* This removes inline element spacing */
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qumo-form-embed-container:not(.loading) iframe {
    opacity: 1;
}

.qumo-invalid-url-input {
    border-color: #dc3232 !important;
    background-color: #ffeeee !important;
}

.qumo-form-embed-error {
    color: #dc3232;
    margin: 8px 0;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 12px;
    background-color: #fff1f1;
    border-radius: 8px;
    display: inline-block;
}

.qumo-invalid-url .components-text-control__input {
    border-color: #dc3232;
}

/* Style the block preview area */
.wp-block-qumo-form-embed {
    margin-bottom: 20px;
    padding: 5px;
}

/* Make preview iframe responsive */
.qumo-form-embed-preview iframe,
.qumo-form-preview-container iframe {
    max-width: 100%;
    border-radius: 12px;
}

/* Helper text */
.qumo-helper-text {
    margin: 16px 0;
    padding: 10px 14px;
    background-color: #f0f7ff;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
}

/* Placeholder improvements */
.qumo-placeholder-container {
    padding: 40px 20px;
    text-align: center;
    background-color: #f8fafc;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px dashed #e0e0e0;
}

.qumo-placeholder-logo {
    height: 32px;
    margin-bottom: 20px;
}

.qumo-placeholder-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.qumo-placeholder-subtext {
    font-size: 13px;
    color: #666;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.5;
}
