#diocese-submit-form-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.diocese-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.diocese-form-group input[type="text"],
.diocese-form-group input[type="email"],
.diocese-form-group textarea,
.diocese-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.diocese-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.diocese-form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.diocese-form-group input[type="file"]:hover {
    border-color: #007cba;
}

.diocese-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

#gallery_preview,
#documents_preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-preview {
    position: relative;
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    max-width: 150px;
}

.file-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 5px;
}

.file-preview .file-name {
    word-break: break-all;
    line-height: 1.2;
}

#diocese-submit-btn {
    background-color: #007cba;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#diocese-submit-btn:hover {
    background-color: #005a8a;
}

#diocese-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#diocese-loading {
    margin-left: 10px;
    color: #666;
    font-style: italic;
}

#diocese-submit-messages {
    margin-bottom: 20px;
}

.diocese-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.diocese-message.success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.diocese-message.error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

.diocese-message.info {
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
}

/* Адаптивность */
@media (max-width: 768px) {
    #diocese-submit-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .diocese-form-group input[type="text"],
    .diocese-form-group input[type="email"],
    .diocese-form-group textarea,
    .diocese-form-group select {
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    #gallery_preview,
    #documents_preview {
        flex-direction: column;
    }
    
    .file-preview {
        max-width: 100%;
    }
}

/* Спиннер загрузки */
.diocese-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: diocese-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes diocese-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 